Grayscale BufferedImage and jit.matrix

Jul 15, 2006 at 11:31pm

Grayscale BufferedImage and jit.matrix

It seems I can instantiate a jit.matrix with a grayscale BufferedImage
(BufferedImage.TYPE_BYTE_GRAY) with

JitterMatrix jim = new JitterMatrix(myGrayBufferedImage);

but I have to pass the matrix out to a jit.matrix 4 char.

At least, I have had no success sending the image to a jit.matrix 1
char–all I get is a white image.

OTOH, I can send the image directly to a jit.pwindow.

I had thought to generate alpha channel planes with Java, this seems
to make things a little trickier.

Can someone confirm that this observation is the case?

– Paul


—– |(*,+,#,=)(#,=,*,+)(=,#,+,*)(+,*,=,#)| —–

#26815

You must be logged in to reply to this topic.