Where can I find a class/library to make my image?
Hi, all:
I've never worked with Images before, and I'm a little lost on where to start. I need to make a graphical display involving a parameter value for the image I'll be displaying. Imagine a range from 0-9, where given a value of 0, a thin circle is drawn, at 4 a fat tire, and at 9, a solid disk. That circle will be overlaying a square (I'm fine on the square, as its color is an easily settable HSB combo). That circle will also be in greyscale based on another range from 0-9. So, given something like
public Image makingADisk () {
int diskShape = a value from 0-9 I'm getting from an arrayList elsewhere
int diskGreyScale = a value from 0-9 I'm getting from an arrayList elsewhere
get the image that corresponds to the scaled value of diskShape
get the color that corresponds to the scaled value of diskGreyScale
return aDiskHavingTheseTwoProperties;
}Where do I start? Is there a library out there that will draw circles/disks like this? I'm fine on getting the greyscale color, but how do I make the image that color? If you have suggestions for a different class instead of Image to use, I'd like to know that too.
Get a graphics context for the image and simply call the setColor(..) and drawOval(..) methods.
Example (for diskShape0):
BufferedImage image = new BufferedImage(628,480, BufferedImage.TYPE_INT_RGB);
Graphics2D g = (Graphics2D) image.getGraphics(); // cast is safe, see javadoc of Image
// color
int colorFactor = diskGreyScale * 200;
g.setColor(new Color(colorFactor,colorFactor,colorFactor));
// stroke
BasicStroke stroke = new BasicStroke(1);
g.setStroke(stroke);
// draw
g.drawOval(x, y, width, height); Edited by: M.Stamm on Jul 18, 2008 12:46 AM -> Spelling error
Similar Messages
-
Where can I find SafeZipFileInputStream class in weblogic 10.3
Hi ,
I am migrating my application from weblogic8.1 to weblogic 10.3. In my application I used SafeZipFileInputStream.class , this class is placed in weblogic.jar file.
In weblogic 10.3 SafeZipFileInputStream.class is not in weblogic.jar file.
Can anyone help me where can i find this class.
Thanks in advance.
Sha.It is under modules directory, look for modules\com.bea.core.utils.full_1.4.0.0.jar or modules\com.bea.core.utils_1.4.0.0.jar
-
Where can i find my iphoto library?
After recovering my hard disk (erasing everything because of performance issues) and reinstalling everything from Time Machine i can not find my iPhoto library anymore. I know it has to be somewhere because every single thing was copied correctly so i am also assuming iPhoto library would be copied correctly. However i can not find it in finder (it is not in the default location and i know it never was).
Does somebody know where to look and how to find it?Launch iPhoto with the Option key held down and tell us how many libraries are listed in the following window:
Is there one shown? If not download and run Find Any File to search for a file with "ThumbJPGSegment" in the file name. There are files common to all versions of iPhoto libraries with that as part of the file name..
FAF can search areas that Spotlight can't like invisible folders, system folders and packages. If there's a library hiding somewhere on your hard drive FAF will find it. -
On a Mac where can I find the Thunderbird library?
I am trying to move my mailboxes to Apple Mail and I can't find the Thunderbird library. Where can I find the file?
Mail is probably looking for the profile folder, or one of its subfolders, and the easiest way to find it is from Help (or AppMenu/Help)/Troubleshooting Information, click Show Folder to open it in Finder.
http://kb.mozillazine.org/Profile_folder_-_Thunderbird#Mac_OS_X -
ISA R3 develop where can I find the classes
Hi everybody,
I want to modiy Java classes from the ISA R3 shop.
I have unpacked the *.sar file which contains several ear files like b2b.ear, shopadmin.ear etc. I have unpacked this ear file. After that I have unpacked the corresponding war files. I thought after this steps I can find the Java classes. But there are only jsp and xml files.
Where can I find the Java classes (Beans etc.)
Is it correct that I have to unpack ths files with the jar.exe from the jdk and not with the ISA-BUILT tool?
Kind regard
AxelHi Axel.
I suggest you that checks the notes in the forum of Customer Relationship Management (CRM), in that forum comes all about ISA.
For modify ISA you have to download de ISA Build Tool, you make your changes and after that you install the new ear application.
All the bean classes in this applications comes in jar´s but you can extended the classes.. for do it, read the SAP ISA Development Guide
Good luck!
Rewards
Joshua -
Where can I find CLDC class source?
We can find source of J2SE classes inside src.zip of JDK. Similarly where can we find source of CLDC classes? I need source of java.util.Calendar class.
i got it here :http://java.sun.com/javame/downloads/index.jsp
-
Hi,
Which jar file contains the class com.sap.aii.adapter.axis.modules.HandlerBean? Where can i download from?
Thank you
Monika Dietzmonika,
Check this out...
http://www.mail-archive.com/[email protected]/msg37875.html//www.mail-archive.com/[email protected]/msg37875.html
Regards
Ravi Raman -
Where can I find Quictime's Library?
In order to AVI video I need to put drag the Xvid codec into Library/Quicktime, but I can't find it. Do I have to have Quicktime Pro in order to see it?
Thanks. I can at least see the video now.
-
I'm trying to find a class I may attend for Microsoft Powerpoint 2008 for Mac. Charlotte, NC
As PowerPoint is not an Apple product, you may get faster results by postin in this forum:
Office for Mac forums -
Share library with my iPad - where can I find the shaered library?
I cannot find my shared library that is on my PC with my iPad. They are both on the same network
If you want to find the shared music go to the More Tab in the Music App. If you want to find shared videos go the Videos App and the shared tab is at the top of the screen.
-
Where can I find development class for created by me table
Hi Gurus
I've created a table ZTEST and I have added it to development class ZGENERAL. My question is how can I in report knowing the name of table find to what development class it was assigned?
Thank you for all helpful answers.
BR
Marcin CholewczukHi
Table TADIR
Passs
PGMID = R3TR
OBJECT = TABL
OBJ_NAME = MARA
and you can find the Package in DEVCLASS fields
Cheerz
Ram -
Where can i find my class files??
i'm looking into a jsp file, and it imports a class named MailSequia.MailerBean. I get errors about certain class, i would like to know where it 's sopoused to be this class, is it in classpath?? or where it should be??
If it's in a jsp file on a server the class files are located in the
WEB-INF/classes/yourPackage/yourClass directory. -
Where Can I Find the classes.zip File?
I am looking for the JDBC driver for the Oracle database. I have been to the http://www.oracle.com to look for the classes12.zip and could not find it. Has the name of the zip file changed for Oracle JDBC 10.1.0?
There are two parts: the java version and the database version.
This would normally be: classes11.zip, classes12.zip and ojdbc14.jar.
You should probably be using the last. The first two would be for earlier versions of the database and java.
If you install the Oracle client it should have it (look for a jdbc dir.)
There is some place to download it from the otn site as well. -
Where can I find the iTunes library icon in OS 10.8.5?
I have a new iMac and I'm trying to reset the number of plays in Itunes... very frustrated with google results apparently not up to date with the current operation system.
Open iTunes, go to Music and from the Songs tab, select the song or songs > right-click (CTRL-click) > Reset Plays
COMMAND+A will select all -
Can't find Java Class of a standard UI Command
Hello everybody,
Where can i find Java classe source and Bundle file of a standard UI Command "AppDetails"
for example ?
Thanks & Regards,
Hassan MounimHi Hassan,
You can find the UIDetailsCommand class here:
..\WEB_INF\portal\portalapps\com.sap.km.cm.ui.flex\private\lib\km.appl.ui.flex.uicommand_core.jar
And the bundle file UIConst here:
..\WEB_INF\portal\portalapps\com.sap.km.cm.ui.flex\lib\km.shared.ui.flex.uicommand_api.jar
Hope this helps,
Robert
Maybe you are looking for
-
We want to order adobe forms central for a small business unit 3 persons - Price and download?
thank you for further information
-
Photos show up empty thumnail from icloud photo library
I am using iOS 8.3; iPhone 6; iCloud Photo Library with 20000+ photos. I uploaded my entire library to iCloud from Mac OS X Photo app. After the long uploading time, when I try to load back to my iPhone, I found many empty grid with the cloud icon. E
-
How can you configure mail settings in process chains?
HI Experts, please let me know how can you configure mail settings in process chains?
-
ECC disclaimer in NWBC 3.0
Hi Experts, I have configured PLM 7.0 EHP 4 SPS6 to NWBC 3.0 for PLM Web UI. I have added a TCODE :cv04n to one role . The tcode is working fine in NWBC , but the ECC Disclaimer is popping up each time a user visits the TCODE in NWBC. How can we supp
-
Hi friends, 1.Please send me the prerequisites for HR Master Data Uploading? 2.Also tell me is it mandatory to create the jobs and positions, on OM?, If no what is the option? since we have to use the imp. Infotype Org Assignt 0001>position field. W