I want to scale an png Image in myApplication. I have found these ways:
// 1. way
EncodedImage ei = EncodedImage.getEncodedImageResource("splash.png");
BitmapField bmp = new BitmapField(ei.scaleImage32(50,75).getBitmap());
// 2. way
EncodedImage image = EncodedImage.getEncodedImageResource("splash.png");
BitmapField field = new BitmapField();
But when I try the first way the BB turns off
If I try the second way nothing happens, the image is still the same.
When I try the second way with image = image.scaleImage32(50,75);
then I get an Exception.
If I use image.setScale(2);
then the image is scaled down. But i want to scale it up. So how do I do this??
Google has no answers for me, an if so then take a look at way 1 and way 2
Maybe someone can help me.