Posted By:
robert_stClaire
Posted On:
Friday, August 9, 2002 12:33 AM
hi everyone, i'm fairly new to JAVA and I have some questions regarding Images from the java.awt package. maybe you can help. I start out with a graphic.jpg in the form of a byte array, I want to rescale this, so I convert it to an Image like this: Image image = new ImageIcon(byteArray).getImage(); And here I get stuck. could somebody please tell me how to: 1) rescale an Image? and 2) convert an Image back to a byte Array? any help would be... well, helpfull. thx
More>>
hi everyone,
i'm fairly new to JAVA and I have some questions regarding Images from the java.awt package. maybe you can help.
I start out with a graphic.jpg in the form of a byte array, I want to rescale this, so I convert it to an Image like this:
Image image = new ImageIcon(byteArray).getImage();
And here I get stuck. could somebody please tell me how to:
1) rescale an Image?
and
2) convert an Image back to a byte Array?
any help would be... well, helpfull.
thx
<<Less