Dear java-linux...
I have a question regarding the ARM version of J2SE
1.3.1 which I use on a Compaq iPaq.
I would like to know which format of
BufferedImage's Raster is the fastest on this platform. I am displaying a large
image (about 800x1000) with a transform so that only a portion of the image
appears on the screen.
The frame rate depends greatly on the raster format
of the image. For example, under Windows and with a PIII 733, I have frame rates
as slow as 1 fps if I directly use an image which I get through ImageIcon, but
if I first create a custom BufferedImage and copy the ImageIcon into this "fast"
image, I have around 20fps, or more.
Here is how I create fast images under
Windows:
ColorModel cm =
ColorModel.getRGBdefault();
int[] bm = new int[] {0x00ff0000,
0x0000ff00, 0x000000ff, 0xff000000};
WritableRaster raster =
Raster.createPackedRaster (DataBuffer.TYPE_INT, w, h, bm, null);
BufferedImage fastImage = new
BufferedImage (cm, raster, true, null);
I am using the same method on the iPaq, and of
course the frame rate is slower (2 or 3 fps). Can somebody tell me which
format is the most optimized for the iPaq ?
Guillaume Pothier
|