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
-
How to increase the size of a .png image
Hi friends,
How can I increase or decrease the size of a .png image using the method scaleImage32() of the EncodedImage class.
Code samples will be very useful...Thank you
ElizabethCheck this thread.
-
Add a vpn connection in ios 10, method chosen in IKEv2, but I don't have the remote ID. My VPN is created in Sonicwall, waiting for quick reply
Hi cmscan,
Thank you for using communities of Apple Support.
I see that you add a VPN connection using IKEv2, but you do not have the remote ID. I know it's important to be able to set up a virtual private network, you can connect using your iPhone. I'm happy to help you with this.
You must contact your system administrator to ensure that the settings that you must configure the VPN connection. Please see the iPhone user Guide for more information.
Have a great day!
-
purchase fail to cause I used to pay purchase iTunes gift card, so I chose any of the theme of credit card. Credit card is danger, I don't like to pay with this method. Can iTunes gift card can't pay inn - app?
You should be able to make in-app purchases with gift cards. What happens when you try to do?
-
Hey, need help. I get this in my iPhone that 'there is a problem of billing with a previous purchase. Please update your payment method"anyway I can remove my visa card from iTunes?
You must pay your debt first.
-
Why can't I change my payment method
I can't download apps or upgrade of BC., it is said inval map, you need to add another method of payment. OK, that's fine but I put my there debit card and he said declined. So I call the Bank and I have more than enough money in there! What can be the problem
Not all debit cards are accepted as payment. You can contact the support of iTunes for clarification, but usually when something is denied, it can also be a problem with a game of football with the name, address or other identifying information. support for iTunes, https://www.apple.com/emea/support/itunes/contact.html
-
Hello world
How can buy you an IBook of UK not available in Indian store a store; When you change the status of your country, your billing information and credit cards won't work; is there a solution for this using the same method of billing
There is no solution, if it is not available in your area, you can't buy it.
-
unlock my method of payment thanks
unlock my method of payment thanks
You will need to communicate directly with Apple > http://www.apple.com/contact/
What is a community of users to anyone here can do for you.
-
Why Thuderbird stopped sorting emails by date and added a new sort of his method?
Yesterday, my emails have been sorted in strict chronological order. Today, they are classified by subject and by date and are in reverse chronological order - oldest first. If all the mails I received from a person in the last two months are grouped, chronologically. I can't imagine what use that method can be anyone.
When I click on the Date header nothing changes.
It looks like you might have screwed so turned on.
Sort by view by Unthreaded -
Hello
I'm trying to change my address to address American
but she continued telling me that the method of payment can be accepted?
what I'll do, I tried more than one VISA
In which country is the card billing address?
-
Latest update of Firefox changed how to search bar functions. This should NOT be done automatically without warning of a person on the changes. I have problems using this new method of research, and I hate it. I want than the previous method return. A contributor has tried to help him, I guess. But what he suggested did not work. I can't fix thru on Firefox. A window opens and does nothing. About Firefox does nothing, but look at me. I don't know how to enter the configuration of Firefox. I appreciate the-edmeister tried to help me, but nothing has changed. There, someone knows how to give back me my old search bar?
It's not On Firefox's Subject: config as explained here:
https://support.Mozilla.org/en-us/questions/1035119 -
Why install different cleaning methods?
I plan to do a clean install of El Capitan following a wave of seemingly random crashes and stalls. A search of the internet translates into two basic methods. It is on the Apple Support site and seems very simple and direct, involving little more using recovery menu How to reinstall OS X on your Mac - Apple Support. The other method is to format a USB stick or other external storage device and seems to be much more complicated (a tutorial of U-tube lasted 10 minutes to describe the method). Outside of masochistic fun, what is the advantage of using the second of these two methods, or, in other words, what are the flaws in the technique of Apple?
The first method requires to download the installer every time the procedure is performed and then wait several hours for it to download, in addition to having a reliable Internet connection. The other doesn't.
(143313)
-
What method of encryption using Firefox?
My Bank has just informed that my browser must use TLS 1.0 as its encryption method after 8 January 2015. I can't for the life of me I know what method of encryption using Firefox.
I think the Firefox version 34 tomorrow will have TLS 1.0 minimum it will use and not SSL 3.0
Security.TLS.version.min = 1 = TLS 1.0 0 being SSL 3.0Not on my computer to check.
-
iPhone not locked, any work method
I forgot the password for my iPhone 6 and the recovery mode does not work. After that download about 200 MB of 1.88 GB my iPhone starts and is always locked and disabled. Contact ID does not work either. With the iCloud my phone is not picking up wifi because it has been disabled so many times and my iTunes keeps asking for the password to enter with the first method. What should I do?
-
Cannot removie trovi add-on from Mac - have tried the validated method
Need details on how to remove trovi add-on which redirects to a page on a MacBookPro OS 10.9.5 using Foxfire 33.1
Help please!
Hello
Have you checked your Applications for all suspicious programs? If you find any, delete them.
The reset Firefox feature can solve a lot of problems in restaurant Firefox to its State default factory while saving your bookmarks, history, passwords, cookies and other essential information.
Note: After Firefox reset, you will lose all extensions, toolbar customizations, and certain preferences. See article Firefox Refresh - reset modules and parameters for more information.
To reset Firefox:
- Open the troubleshooting information page using one of the following methods:
- Click the menu button
click Help
and select troubleshooting information. Should open a new tab containing your troubleshooting information.
- If you are unable to access the Help menu, type Subject: support in your address bar to bring up the troubleshooting information page.
- Click the menu button
- At the top right of the page, you should see a button that says "Reset Firefox" which looks like this:
. Click on it.
- Firefox will close and reset. After it's done, Firefox will display a window with information that is imported.
- Click Finish and reopen Firefox.
This corrects the problem? Please report to us! Let us know how you tried.
Thank you.
- Open the troubleshooting information page using one of the following methods:
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!
-
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