How you overlay a bitmap with a solid color

Hello

I have a set of icons that are all white with a transparent background.  I need allow the user to change the color of these within the app.  Does anyone know how to do this?

I never did, but I think that if you have the bitmap, then you can do it using get and the ARGB value.

In essence, you convert the Bitmap image into an array of int to getARGB().  The values in the array int containing pixel color value in the form 0xaarrggbb, where a is the alpha value, rr is red, bb is blue and gg is green.  Because your pixels are all white, all white int values will be 0xaaFFFFFF.  If extract you the int values, will replace the FFFFFF (leaving the aa) with the color you want, let all the pixels that are not the FFFFFF as they are and then to int values using setARGB().

Give it a try and let us know how you go.

Tags: BlackBerry Developers

Similar Questions

  • A shape with a solid color fill

    How you fill a shape with a solid color so that the color is confined inside the border/boundary of the shape and does not bleed outdoors, giving shape edges rough after filling?

    I was checking the custom shape fill option which is present after you select the custom shape tool. If I use a new fill layer, the whole layer gets filled. Select the custom shape with choppy edges so quick Selection tool results. And nothing happens when I convert the custom dynamic object shape. I thought it would help, but it did not. I really need help. Also, I want to fill the shape with black. Thanks for your help.

    Hi,shamg

    Please change the fill color for shapes in Photoshop CC - YouTube   using the custom in Adobe Photoshop shapes

    For more information. See Photoshop help | Draw shapes

    Concerning

    ~Assani

  • Can I sync with Dropbox FormsCentral, similar to how you can do it with expert PDF on an ipad?

    can I synchronize my formscentral Adobe with Dropbox, similar to how you can do it with expert PDF on an ipad?

    Hello

    No, FormsCentral does not provide integration with other storage services.

    Thank you

    Josh

  • How to export a file with a CMYK color profile in Lightroom?

    I try to save a picture with a CMYK color profile to send to a company that will print for me. I looked at the color profiles installed on my computer, and a certain CMYK profiles seem to be there (in/Library/Application Support / Adobe / Color / Profiles / recommended). I don't know if they should be expressly in the folder "Profiles", or if it is important that they are in a subfolder of that folder. This is on a Mac, by the way.

    The problem is, when I go to export in Lightroom, and I chose 'Other' in the color profile, I gives me any options of CMYK.

    Thanks for your help!

    Ray

    Sorry... you can't. LR does not CMYK, RGB only... you will need to Photoshop or some other app.

  • Desktop cannot be changed with a solid color

    Original title : I'm not able to add a picture on my desk - does not even try to treat when I select.  Allow me to change the color.

    I'm not able to place a background image on my desktop.  Even when I select a photo (I tried various photos) and press 'apply', he can't even process the change.

    If I select a different color and press 'apply', he transforms and changes the color of my office.

    Help?

    Hi AndreaStephens,

    ·         Did you do changes on the computer before the show?

    ·         You get the error message?

    ·         It was working fine?

    Follow these methods.

    Method 1: Perform a System Restore and check if the problem persists.

    Method 2: Scan the file system (CFS) auditor to repair corrupted files.

    Description of Windows XP and Windows Server 2003 System File Checker (Sfc.exe)

    http://support.Microsoft.com/kb/310747

    Method 3: Create a new user account.

    How to create and configure user accounts in Windows XP

    http://support.Microsoft.com/kb/279783

    If the problem is resolved in a new user account, and then follow the article on how to fix a corrupted user account.

    How to copy data from a corrupted to a new profile in Windows XP user profile

    http://support.Microsoft.com/kb/811151

  • How you can follow an ipod 6 with just the serial code

    How you follow an ipod with just the serial number 6

    You do not have

    No application on the iOS device is necessary.

    -If you have previously enabled FIndMyiPod/iPhone/iPad on iOS device in settings > iCloud and wifi is on and cellular data or connected are turned on and connected on a desktop browser to iCloud: find my iPhone, login and go to FIndMyiPhone. If the iPod has been restored it will never appear or continue to show offline.

    -You can also wipe/erase the iOS device and have the device beep via iCloud.

    If your iPhone, iPad or iPod touch is lost or stolen

    iCloud: erase your device

    iCloud: use lost Mode

    -If this is indicated, then you will need to use the old-fashioned, way as if you lost a wallet or purse.

    -Change the passwords for all accounts used on the unit and the police report and carrier if iPad iPhone or cell

    -There is no way to prevent someone from restoring the clear operation (it erases it) use it except if you have iOS 7 or later version on the device. With iOS 7 or later version, you must enter the Apple ID and password to restore the device.

    -Apple won't do anything without a court order

    Declaration of a lost or stolen Apple product

    - iOS: how to find the number of serial number, IMEI, ICCID MEID and CDN

  • How do you turn off the coast of the coloring layer to animate?

    Hello!

    I've updated to animate and onion skin frames are color coded. Anyone know how to disable this option? I can't find an option to do so, and unfortunately it fills completely the previous and future frames with a solid color that darkens the Interior details of the images really, really bad. I understand how this could be useful to animate solid forms such as stick figures, but it killed my workflow.

    Thanks for any help.

    Hello

    I want to just inform you that animate CC 2015.2 released a few days back allows you to change the colors of onion skins of your choice. In addition, this version includes the following

    Please update your copy of CC animate to the latest (15.2.0.66) using your Creative Cloud Desktop application. Logout & Sign - in in case you don't see Animate CC 2015.2 in your creative cloud application.

    Animation of the happy!

    Thank you!

    Mohan

  • DM 3.1 how to create a Bitmap Index?

    How to create a bitmap with SQL Developer Data Modeler 3.1 index? In the relational model, the properties of the General table allows to enumerate the indexes of a table and to clarify some of their attributes as such as columns and uniqueness. In addition, the properties of the plain index allows more options to set the properties of the index. Unfortunately, I'm unable to find the right place to specify that an index is an index of bitmap.

    However, maker of data tend to support bitmap indexes because the generated DDL statements for a table with bitmap indices, which was initially imported into the data dictionary, have correct index bitmap creation instructions. However, when I compare all B tree index with bitmap index in Data Modeler I can't find an option that specifies the index type as bitmap. So, I would be very happy if someone could tell me how to create bitmap with Data Modeler 3.1 indices.

    Best regards

    Miikka

    Hey Miikka,

    physical model is the place where you can define the specifications of database objects created in the relational model. So you open the physical model and you can find the node index under the node for the related table - use dialog for index set to the index of the bitmap image.

    Philippe

  • Why can't I change my wallpaper to solid colors to the screen image?

    Hello. When I bought my computer ' (windows7 hp pavilion g7) about there is 3 months I changed the desktop background wallpaper with a solid color background and he left like that for a while until that recently tried to return to a background screen image and it does not allow me 2. I tried to change the themes and it gives me just a solid color background. The only thing I can do is change the color of the background through the windows 'color and appearance' and I navigate to 'office' and I'm able to change the color or using the regular option to change the background... that only allows me to use the "solid color" option another option does not work. I clicked and nothing happens its approved image, action and option is not blocked or I receive an error message and I am able to save them, but nothing happening and in the main menu of customization, it displays even the certain image wallpaper I chose as a background, but the background is a solid color.

    Hello

    Have you made changes on the computer before this problem?

    Try the following and see if it helps.

    Method 1:

    I suggest you perform the clean boot and check if it helps.

    Clean boot will check if any third-party application is causing the problem, as the clean boot helps eliminate software conflicts.

    How to solve problems using the clean boot in Windows 7: http://support.microsoft.com/kb/929135

    Note: once the diagnosis has been made, make sure that you try to step 7 of the article to reset the computer as usual

    Method 2:

    I suggest you to consult the following Microsoft article and check if it helps.

    Impossible to change the background image in Windows 7: http://support.microsoft.com/kb/2504610

    Method 3:

    Check if the problem reappeared in a new user account. If it does not transfer the files from the damaged to the new user profile user profile.

    For instructions, see the following article:

    Create a new user account: http://windows.microsoft.com/en-US/windows7/Create-a-user-account

    Difficulty of a corrupt user profile: http://windows.microsoft.com/en-US/windows7/fix-a-corrupted-user-profile

  • Wallpaper won't change a solid color.

    This computer for a clean installation of Windows 7 ultimate (64 bit) recently and now I can't change my background with a solid color.

    For a week or more now that I got the Win7 default background and in did not bother to change, when I tried until today that I could not and do not see that the back on the ground.

    Symptoms:

    After a right-click on the desktop and selecting 'Customize', I am taken to the menu "Control Panel > appearance and personalization > personalization ' appropriate.

    Themes can be selected, and Aero themes will change the sounds and the "window color" correctly. "My themes" can be selected with similar results. At no time will be chosen one of the Preload or personally made topics, change the wallpaper.

    If you have selected the 'Desktop Background' the menu 'Desktop Background' option appears. The first round of available backgrounds are "solid color" list drop-down option. By selecting one of them WILL change the color of the desktop.  Select any s "Image location" menu drop-down available down allows viewing and selection of all the images available (Windows Desktop Backgrounds, pictures, Top Note library: Photos, colors, and photos of Josh [personal photos stored in a file on my desktop]), Aly or all of these pictures can be selected, but none of them apply, even if the user clicks on the save changes"" button.

    If a slide show is selected record of changes made return me to the "Personalization" menu, the unsaved theme is selected and selected photos stack shows up as the desktop image on the icon (not by the real desk top) for less than 2 seconds before returning to a solid color.

    So far, I read messages similar to this one, I have:

    Confirmed that 'remove background images' under 'Making the computer easier to see' is not checked.

    made a "clean boot" via MSCONFIG

    Verified that my version of windows is valid

    updated all my drivers (nvidia 9600gt video card with new win7 64 drivers) system

    attempted to use the "set as background Image" of these two IE8 and locally in my pictures folder

    Thanks for any help you can offer me, I don't really like on the slide show feature, I just want to be able to define an image manually at this stage.

    -Onearm Etienne

    Hello Fabrizio,

    Thank you for posting.

    Here is a link that might help solve this problem

    Difficulty of a corrupted user profile

    David O
    Microsoft Answers Support Engineer
    Visit our and tell us what you think.

  • How can you check if you have a problem with the ghost attack

    How can you check if you have a problem with the ghost attack.

    My ISP (Virgin) sent me a letter saying I could have an attack on my apps by the phantom virus.

    How is this true and what can do

    The XcodeGhost malware affects the apps, mainly Chinese, created using a red version of Xcode.  It is not a 'virus '.  (Look at the difference between computer viruses and malware).  Remove the Apple listed here and get updated with the latest versions of the App Store.

  • How to open an attachment with you. OXPS with windows xp

    How to open an attachment with you. OXPS with windows xp

    Thank you WB.

    The 'solution' that worked for me was to go back to the source and ask the file will be re-created in PDF format.
  • How to connect to an Adobe Javascript(Folder Level Script) SAP Web Service and retrieve the response in a table of the Adobe Javascript/AcroJS. Could you please it explain with an example. I have two required input parameters that must be filled.

    How to connect to an Adobe Javascript(Folder Level Script) SAP Web Service and retrieve the response in a table of the Adobe Javascript/AcroJS. Could you please it explain with an example. I have two required input parameters that must be filled.

    I s generic SOAP example/tutorial on my blog: get a serial number in a form using SOAP - KHKonsulting LLC

    The web service uses only a single parameter, but you should be able to adapt the code to two arguments without problems.

  • How can you save the original with the catalog file file after edit

    OK I'll try boarding.

    First of all, I shoot a game... According to 600 photos. Import the game in lightroom, I mark the photos I want and delete the catalog. I edit and rename and export the files I want the game. say 300 photos.

    My question is; After saving the 300 photos in the catalogue how match the original photos with those exported if they match.

    I think that the best answer is to change your workflow.

    I never export photos except for a specific purpose (e-mail, web, print), and then after that I used the photos exported, I remove the exports. I do not export them just to have sitting around on my hard drive for some whose use is more later. In this way, the photo is still available in Lightroom, and if you want this photo retouched, you go into Lightroom and find and export as required. It is not question to match to originals with exported given that you do not keep the exported photos once they have served their purpose (e-mail, web, print).

  • How display you only the photos with the red label?

    I thought I knew how to do this, but I can't seem to understand. How do you view pictures with a red label.

    Thank you in advance for helping out with this.

    Firislander.

    The filter "Attribute" to color label has buttons that "to toggle" switch.   Click on 'on' - click 'off '.

    When a color filter is 'on', it shows with a white border STROKE - Blue shown in the screen-clip.

    * You can switch more than one color 'on '.  Then click on both red and blue, you can see all images marked with colors red and blue.

    The dark gray button means "all images WITHOUT a color label.  So if this button is switched 'on', you would see the images without a color label AS well as the color of the images.   for example. Blue + no label color.

    You can "rocker" on/off-originals, movies, virtual Copies.

    This screenshot will only show virtual methods.  And with the Blue label 'on', you will see only virtual with blue label.

    And if you click on the 'lock' to 'close', filter settings, rest of the device lock and do not cancel if you view other folders of images.

Maybe you are looking for

  • OS Firefox has parental controls?

    I would buy a Firefox OS device. However I want to be sure he has the similar to iOS of Apple 7 parental control in which Safari can be disabled or restricted to specific Web sites browsing. Also the app store can be disabled.

  • HP pavilion zv6000 - digital media player problem

    My digitial medial player does not read our SD camera card even if the card can be read by a USB SD card reader. We have the same problem with our HP desktop computer digital media player. I have download all the updates that I can find for the AMD p

  • BlackBerry Z10 help with ringtones

    I downloaded the new tones from the 'Business ringtones' application and they went into my music folder, as they should. Fine. I'm going to change my tone e-mail, clicking settings, Notifications, Applications, email /(my email account)/Tone/browse m

  • Windows credentials

    I'm filling out the 'add a window of credentials' I typed in my outlook address in the first column, you enter a user name, (the I log on my computer, then made a password.)  What I am doing wrong? I get this windows cannot save this information. Mak

  • How can I change an icon for a type of file known as Windows 7?

    My E-Pub files are display unknown file icon and I would like to change that...