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