Hi,
I want to scale an png Image in myApplication. I have found these ways:
PHP Code:
// 1. way
EncodedImage ei = EncodedImage.getEncodedImageResource("splash.png");
BitmapField bmp = new BitmapField(ei.scaleImage32(50,75).getBitmap());
mainScreen.add(bmp);
// 2. way
EncodedImage image = EncodedImage.getEncodedImageResource("splash.png");
image.scaleImage32(50,75);
BitmapField field = new BitmapField();
field.setImage(image);
mainScreen.add(field);
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.
thanks hibbert