Flipping or rotating images in Nokia 6680 using Java ME
Flipping or rotating images in Nokia 6680.
If the MIDP 2.0 API is used, the device very quickly runs out memory.
If the Nokia API is used, transparent pixels in the image become opaque.
Whenever the user tries to rotate or flip images, transparent pixels are not only converted into opaque but the device also does not show images completely but in fragments, usually divided into many parts.
The workaround for the problem with the Nokia UI API is to use the MIDP 2.0 API but if the problem still occurs with Graphics.drawRegion(), you can also use the Image.createImage() method with the signature below.
This workaround will be costly because it will save the JAR file size but it won't be able to save the heap memory. Hence this workaround will help only when JAR file size is limited but the amount of heap memory is sufficient.