Resize the Bitmap and get changed background = /...

Hi I have a simple code for mounira a bitmap, but, when I get the new resized Bitmap of it have a black background? and I don't want to. Here's the code.

public class ImageUtils {

    public static Bitmap resizeImage(Bitmap originalImage, int newWidth, int newHeight) {
        Bitmap newImage = new Bitmap(newWidth, newHeight);
        originalImage.scaleInto(newImage, Bitmap.FILTER_BILINEAR, Bitmap.SCALE_TO_FILL);
        return newImage;
    }
}

Try this:

http://supportforums.BlackBerry.com/T5/Java-development/resizing-transparent-bitmaps/Ta-p/703239

Tags: BlackBerry Developers

Similar Questions

  • How to resize the layers (and keep the properties)

    Hello to all and forgive my lack of knowledge of the AferEffects.  Currently, I got the task to my work to create a video for a display at a local arena.  The height of the screen of the arena is 36px.  I bought a model of Envato that I liked but resizing has been a problem.  I created a new composition for the appropriate specifications and copied the model layers in my new composition.  "Then I went to the size equal to the composition but noticed that there are layer 'points' and I guess that 'transformations or effects' ' are not scale with the height of the composition.

    Is there an easy way to resize the layers and all their properties to meet up to my composition?

    Thanks in advance and I promise you I won't go to the current on the use of AE, but for the moment I'll have to get finishing with searches google and help forum.

    Have you tried to use the script of the Composition of the ladder by going to file - Scripts - scale Composition.  Define a height 36, click scale and then copy and paste all your layers model comp above the 36 x 2760 model. Who should maintain relationships between all layer properties in the model.  Forgive me if I'm struggling to understand what you're trying to do, but a few screenshots of your comps might help illustrate your workflow.

  • Can not good press the mouse on the name of the file and get the option of e-mail

    Can not good press the mouse on the name of the file and get the option of e-mail

    Hello! If I understand your question, you want to right-click on a file and attach it in Mail. To do this, click on the file with two fingers on the touchpad, or control + click on the file, select 'Share', then 'mail '.

    I hope this helps!

  • Today cell 9.7 Pro wifi iPad receipt. No SIM card installed. I guess I can go to the carrier and get the SIM on their part is there a reason I would need the Apple SIM card?

    I got my Pro iPad with wifi and cell phone. There was no SIM card. I'll go to the carrier and get the card SIM on their part is there a reason I need Apple SIM card?

    Apple SIM card to activate the iPad with more companies that I believe except Sprint - if you can get a SIM card from your service provider, then you would not fail the card SIM Apple

  • I click on the links in the email and get a box that says: "this file does not have a program associated with it for performing this action" and the link cannot be opened.

    Original title: problem e mail

    I click on the links in the email and get a box that says: "this file does not have a program associated with it for performing this action" and the link cannot be opened.

    Suggestions;

    1. make sure that your e-mail program is your default program.

    2. make sure that your Internet Explorer, or your main browser has all its faults.

    You can do both of the above by following these steps...

    Start button > right column, click default programs > click Set Your Default programs...

    1. click on your e-mail program > it doesn't say "this program has all its defaults"?
    If not, click on choose by default for this program > check all boxes below the list > click on save when finished.

    2 do the same as above for your Internet Explorer, or your main browser.

  • Microsoft will allow me to return the OEM and get a copy retail or I have to buy the disc at retail?

    I went to the store to buy a copy of Windows 7. When I got home, I realized it was the OEM 64-bit edition. I already opened and installed. I just noticed that I should use the copy that I am not a seller of computer retail. Microsoft will allow me to return the OEM and get a copy retail or I have to buy the disc at retail? I'll be money for theOEM. I guess I should have ask a seller in the store, but they were all occupied. I installed it for someone else while they are mad at me. Can I do a system restore to solve the problem?

    Original title: oem vs retail

    There is nothing wrong with using an OEM copy, its identical to a retail license, just that he has a certain license terms. Considering that the retail licenses are rare and expensive right now, I'd work with OEM license. Microsoft ended sales at retail of Windows 7 in October 2013, while they carry a premium right now.

    The OEM of Windows 7 versions are identical to the versions commercial full license with the following exception:

    -OEM versions don't offer any free direct support from Microsoft technical support Microsoft

    -OEM Licenses are tied to the computer first you install and activate it on

    -OEM versions allow all hardware upgrades except for an upgrade to a different model motherboard

    -OEM versions does not move directly from an older Windows operating system

    What is OEM software? :

    http://support.Microsoft.com/GP/oemsupport_1/en-GB

    Licensing FAQ:

    http://www.Microsoft.com/OEM/en/licensing/sblicensing/pages/licensing_faq.aspx

  • Ligtroom 6 best, I will describe my problem once the hour 1. After 4 weeks, I get the message "trial version Ligtroom 6 expired 2. You will be asked to fill out my license number 3. After completing the restart and get the message "error 16" 4. Never

    Ligtroom 6
    Better, I will describe my problem once right
    1. always after 4 weeks, I get the message "trial version expired Ligtroom 6a
    2. you will be asked to fill out my license number
    3. After completing the restart and get the message "error 16".
    4. all again manager install Adobe again and install this once again repeated problem Ligtroom each month can ensure that this stops my version is a purchased official version
    Now repeat the problem after only 4-5 days!
    Caveat! I'm not a computer specialist are not too complicated solution

    Since this is an open forum, not Adobe support... you must contact Adobe personnel to help

    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">

    Don't forget to stay signed with your Adobe ID before accessing the link below

    Creative cloud support (all creative cloud customer service problems)

    http://helpx.Adobe.com/x-productkb/global/service-CCM.html

  • I can't clear the permission and get the following error message: failed to clear approval. Please try again after some time.

    I can't clear the permission and get the following error message:

    Cannot clear permission. Please try again after some time.

    I want to be able to allow so I can transfer files to my torchlight Nook more

    Macintosh:

    1. exit the Adobe Digital Editions software.
    2. Navigate to / Users / / Library/Application Support/Adobe/Digital Editions and drag the activation.dat file to the trash.
      If you use 10.7, see library access hidden files. Mac OS 10.7 and later.
    3. Open Adobe Digital Editions and reauthorize.

    Windows:

    1. Close all applications.
    2. Click Start > run.
    3. Open, type regedit in the text box and press ENTER. The Registry Editor opens.
    4. In the left pane of the registry editor, locate the following registry key: HKEY_CURRENT_USER\Software\Adobe\Adept
    5. Select the key of the follower.
    6. Choose file > export.
    7. In the export registry file dialog box, select the branch selected under export range. Enter a name and location for the backup registry key, and then click Save.
    8. Right click on the key to the follower, and then choose Remove.
    9. In the dialog box confirm the key deletion, click OK.
    10. Close the registry editor.
    11. Open Adobe Digital Editions and reauthorize.
  • I pay $49,99 and the application does not change "open" again in "trial"... I restarted the creative cloud with the login and nothing change...

    pay $49,99 and the application does not change "open" again in "trial"... I restarted the creative cloud with the login and nothing change...

    Wow!

    So many entries of URL blocker, Adobe, this is the reason why you are unable to activate the CC apps.

    Follow the procedure below:

    • Remove all entries that has name of adobe. Then close the Textedit, it will Autosave.
    • Make sure that there is no entry of Adobe on the inside.
    • Then copy and paste the Hosts file in folder etc.
    • We replace the modified hosts file that we had copied on the desktop with the original Hosts file inside the folder etc.
    • When you are prompted, the authentication by password Mac,
    • Be sure to select the option Replace ...
    • Once you have replaced the Hosts file, double click on it again and check if the Hosts file is free of Adobe entries.
    • In the affirmative. launch creative cloud application and load the list of Apps and check.
  • How can I make my PC OS meets the requirements and get windows vista to be taken in charge for the installation of adobe lightroom 6?

    How can I make my PC OS meets the requirements and get windows vista to be taken in charge for the installation of adobe lightroom 6?

    Well, I'm not really sure of Windows Vista.

    You can contact customer service for additional troubleshooting.

  • Everytime I open the preferences file damaged and is Illustrator CC reset back to the default and then change among other keyboard shortcuts.

    Everytime I open the preferences file damaged and is Illustrator CC reset back to the default and then change among other keyboard shortcuts.

    Thank you

    Hello

    We have published a fix today that solves this problem of corrupted preferences. Go to the creative cloud application and download the patch CC 20151.1 (19.1.1)

    If you see not the patch in the creative Cloud application wait on or refresh cycle you can disconnect and connect to force refresh the list of available patches.

    Kind regards

    Ashutosh

    On behalf of the Illustrator engineering team

  • I have CS5 and a d-600. I would like to use camera raw, but does not. I downloaded CR 7.3 and still does not. What I need to upgrade to CS6... or just throw everything out the window and get rid of my d-600?

    I have CS5 and a d-600. I would like to use camera raw, but does not. I downloaded CR 7.3 and still does not. What I need to upgrade to CS6... or just throw everything out the window and get rid of my d-600?

    It allows you to use your RC files, Adobe - Adobe Camera Raw and DNG Converter: for Windows

    Camera Raw: How to use Adobe DNG Converter - YouTube

  • I can't refine edge to work in 2014 of CC.  I select the mask, do the steps required to refine the mask and get a negative icon, a circle with a slash, and it does not work.  I used refine edge before and it has always worked.  This happened on fo

    I can't refine edge to work in 2014 of CC.  I select the mask, do the steps required to refine the mask and get a negative icon, a circle with a slash, and it does not work.  I used refine edge before and it has always worked.  This has happened for a while.  Very frustrating!

    Adobe Creative Cloud to edge CC>

  • Tried to access the programs and get the error: message 16. What is the problem? Help, please!

    Tried to access the programs and get the error: message 16. What is the problem? Help, please! Photoshop, photoshop elements, Dreamweaver - none of my creative Cloud applications will be commissioning, since my last update. I need to access these programs for the job, I'm trying.

    Hi wdriver,

    It seems that for some unknown reason the authorization in the licensing folder is deleted. Please try to start one of the applications by right click and select run as administrator, it should solve the problem by doing this.

    Please let us know if it helps.

    Kind regards

    Abhijit

  • The battery of my computer does not load. I changed the battery and I changed the AC adapter, and I always get this message: "0% available (plugged in, not supported)" I don't know what the problem is.

    My computer the battery does not charge.  I bought a new battery and I changed the AC adapter but the battery still won't charge.  This is the message I get:
    0% available (plugged in, not charging) don't know why.

    Hello

    1. What is the number of brand and model of your computer?

    Let us try the steps mentioned below to see if the problem is resolved.

    Step 1:

    a. Click Start; type devmgmt.msc in the start search box and press ENTER.

    b. expand the batteries category.

    c. under the batteries category, right-click in the list of Microsoft ACPI compatible with battery control method and choose uninstall.
    WARNING: Do not remove the Microsoft AC adapter driver or any other compatible ACPI driver.

    d. on the Device Manager, click Action and then click Scan for hardware changes.

    Windows will scan your computer for hardware which has not installed the drivers and will install the necessary drivers to manage the battery power. The notebook should now indicate that the battery is charging.

    Step 2:

    If this does not work, try power cycling of your laptop by following the steps below.

    a. remove the battery from your laptop, and then press the power button to all 15 sec.
    b. now connect to the battery and check if it works.

    I suggest also, please contact your computer manufacturer to see if they have any suggestions about it.

Maybe you are looking for

  • Pavilion P6000: Windows Word starter

    I upgraded to Windows 10 and lost the word progam starter and not able to open any existing file.  I didn't like Windows 10 when even then I reinstalled Windows 7.  I still can't use starting Word. I uninstalled Microsoft office 2010 starter (is it t

  • CCC

    I did a VI to acquire signals of AI with a loop! I use the function "open/create and write to the text file" to save the data. I have the problem that I can not add a set of data, if I want to save new data in the same file. The new file are saved be

  • I keep getting failed when you try to download the required update just get error 66A

    I tried questions from what I can understand, but still get failed whenever I try to download this critical update. 66A error keeps appearing every time.

  • Reinstalling XP and service packs

    If I format my hard drive and reinstall XP, what questions should I with service packs? Also, could I install it on my hard "D" drive and start that instead?

  • DVD RW drive does not.

    HelloIM currently having a problem with my dvd rw drive that just isn't ready to all media now, music, dvd, blank discs etc.I tried microsoft AutoCorrect and self-help guides and nothing seems to work and have also tried 2 uninstall and restart and s