Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2006

Tip: Looking for answers? Try searching our database.

Question regarding drawing an Image

Thread view: 
CooperFan9390 - 04 Jul 2006 14:30 GMT
Hi,

I have a problem I would like some help with. My java program reads a
BMP, removes the header and stores the pixeldata in a 3-dimensional
int-array. (int[y][x][3] : where 3 pixelvalues are stored in the last
array)

Now, I would like to draw this image in a JWindow or JFrame, (doesn't
really matter) and thought it would be possible using
MemoryImageSource. I'm only a beginner and have not been able to find a
good documentation about this. Can anyone help me out?

- Luuk
Oliver Wong - 04 Jul 2006 15:26 GMT
> Hi,
>
[quoted text clipped - 7 lines]
> MemoryImageSource. I'm only a beginner and have not been able to find a
> good documentation about this. Can anyone help me out?

   Read the example at

http://java.sun.com/j2se/1.5.0/docs/api/java/awt/image/MemoryImageSource.html

and see the doc for

http://java.sun.com/j2se/1.5.0/docs/api/java/awt/image/MemoryImageSource.html#Me
moryImageSource(int,%20int,%20int[],%20int,%20int
)

   If you have further questions, let me know.

   - Oliver


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.