How to scale image (Bitmap
/EncodedImage
) efficiently in Blackberry (using OpenVG
/OpenGL
if hardware acceleration supported). Can something like VGField
/GLField
be used to achieve that?
I have already tried Bitmap.scaleInto(...)
, EncodedImage.scaleImage32(..)
and some naive algorithms (raw data manipulation). Also I can't use ZoomScreen
because it is not possible (?) to change the image of an ZoomScreen
instance dynamically.
Need some idea about how the default image viewer application in BlackBerry device (e.g. Torch 9800) performs smooth pinch zooming.