Re: [JAVA2D] How to create a smaller BufferedImage from larger one - help wanted

2003-03-04 Thread Jim Graham
Hi Eric, BufferedImage questions are always welcome on the Java2D list. You might have better luck getting the ColorModel, asking it to create you a compatible raster, and then using the BufferedImage constructor that takes a ColorModel and a Raster. But, if the original image was a GIF then

Re: [JAVA2D] How to create a smaller BufferedImage from larger one - help wanted

2003-03-04 Thread Eric Kolotyluk
Thanks Jim for welcome and the tip, but I cannot see how to get a WriteableRaster that is scaled, or how to scale a WritableRaster - other that to do the interpolation myself, but that would defeat the purpose of a high class library of graphics. Yes, I'm not working with GIF but with PNG. My