method scaleImage32()

Does anyone know why my image2 does not get reduced in the image2.scaleImage32 () method?

public ZoomScreen setScreen(){

     map1.getBitmap().scaleInto(tempBmp, Bitmap.FILTER_BILINEAR);
     Graphics g = Graphics.create(tempBmp); //works
     g.drawBitmap(100, 100, bitmapImage2.getWidth(), bitmapImage2.getHeight(), bitmapImage2, 0, 0); //works
     image2 = PNGEncodedImage.encode(tempBmp); //works
     image3 = image2.scaleImage32(Fixed32.toFP(100), Fixed32.toFP(200)); // does not work
     ZoomScreen screen = new ZoomScreen(image3);// works

  return screen;

}

Your question is that peter has stressed in his first comment. The value supplied to scale32 is not the size scale factor you want to scale. In your example, you say you want to scale the image by a factor of 100 and 200. You need the functions of Fixed32.div(x,y) to get the report you want to scale and provide to the scale32 function.

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for

  • How to generate a pulse with the signal generator?

    Hello I would like to ask if anyone knows how to use the Elvis platform to generate a regulated pulse wave? It should look roughly like the picture above. A sine wave with the regulation. Anyone who can answer my question please respond to my post. T

  • How to stop execution when modal Subvi open?

    Ladies and gentlemen, A very simple question: I sometimes modal dialog boxes, which can be closed (which can happen during programming, when logical not completed, or if one of the modal dialog boxes then opened, and then main VI is started). Then, w

  • Windows 7 on a computer with drive SSD C which has now a windows directory of $. ~ bt

    Original title: Geoff I run Windows 7 on a computer with drive SSD C which now has a windows directory of $. ~ bt which I don't want. I can't remove this directory despite several attempts! Please help me remove this unwanted directory as I do a lot

  • Smartphones blackBerry 8110 pearl Bluetooth problems

    Hi, can someone give me an idiots guide on how to get my 8110 to accept and send bluetooth. I've activated bluetooth and paired with peripheral but connection keeps not. makes me crazy!

  • creating cloud in guadeloupe

    Hello, I moved to st Barths guadeloupe...Adobe is saying that it of not possible to save the new creative cloud (LR + PS 2015) in this country(1) I already have a creative cloud account for 1 imac and Mac book pro(2) I need a second account creative