Changing a certian color to another color

how can i be done

//If you DON't know actual color of image
    public static BufferedImage getBIrecoloreada(BufferedImage bi, Color nuevoColor) {
        int w = bi.getWidth();
        int h = bi.getHeight();
        int pixel;       
        int codColor = nuevoColor.getRGB();
        BufferedImage biNueva = new BufferedImage(w, h, BufferedImage.TYPE_INT_ARGB);
        for (int x = 0; x < w; x++) {
            for (int y = 0; y < h; y++) {
                pixel = bi.getRGB(x, y);
                if ((pixel & 0xff000000) != 0x00) {
                    // Si no es un pixel transparente (16777215)
                    biNueva.setRGB(x, y, codColor);
        return biNueva;
     //If you know actual color of image
    public static BufferedImage getBIrecoloreada(BufferedImage bi, Color colorActual, Color colorNuevo) {
         int w = bi.getWidth();
         int h = bi.getHeight();
         int pixel;       
         int codColorNuevo = colorNuevo.getRGB();
         int codColorActual = colorActual.getRGB();
         int diferencia = codColorNuevo - codColorActual;
        BufferedImage biNueva = new BufferedImage(w, h, BufferedImage.TYPE_INT_ARGB);
         for (int x = 0; x < w; x++) {
             for (int y = 0; y < h; y++) {
                 pixel = bi.getRGB(x, y);
                 if ((pixel & 0xff000000) != 0x00) {
                     // Si no es un pixel transparente (-16777215)
                      biNueva.setRGB(x, y, pixel + diferencia);
         return biNueva;
     }

Similar Messages

  • How do you change the background color from black to another color on i movie

    How do you change the background color from black to another color on i movie

    You post your question in the iMovie forum.

  • How to change image from one to another color.

    Hi All,
      In our application we have used two sets of items [i.,e Text items & Drop down list items]  
      For all these we have used as mention below
    Label->Country
    Horizontal/vertical alignment->Right
    Template ->Required Label
    Now for required label currently it shows as
    img alt="Required Field Icon" src="/i/themes/theme_12/required.gif
    [which is in orange color] but i have to change into "Red color" for asterick
    Could some one help me on this request to make changes.
    Regards,
    Sruthi tamiri!!

    SruthiTamiri wrote:
      In our application we have used two sets of items [i.,e Text items & Drop down list items]
      For all these we have used as mention below
    Label->Country
    Horizontal/vertical alignment->Right
    Template ->Required Label
    Now for required label currently it shows as
    img alt="Required Field Icon" src="/i/themes/theme_12/required.gif
    [which is in orange color] but i have to change into "Red color" for asterick
    As previously advised, you must provide your APEX version, theme, and browser version when asking a question in order to get relevant assistance...
    The asterisk is a GIF bitmap image so the orange colour is inherent and fixed. To change it using an image in the template you need to find or create an image of a red asterisk.
    It is possible to do this more flexibly using CSS without images:
    a.t12RequiredLabelWithHelp:after,
    .t12RequiredLabel:after {
      content: " *";
      color: #c00;
    However this won't work at all on IE7 as it doesn't have support for generated content, nor will it work in later versions of IE using theme 12 as it is a legacy quirks mode theme, and IE8+ only supports generated content in standards mode.

  • How do I change the text color of footers on select pages? (InDesign CS6)

    Good afternoon,
    Months ago, I worked with a graphic designer to put together a 100-page workbook for my training company. He turned all of the files over to me and I'd like to make a small change before we print another run for a new client. Specifically, I'm having trouble changing the text color on select pages. Since a picture says 1,000 words, let me give you an example:
    As you can see, the copyright information on the right side of the page is difficult to read here when placed over the photo (you may have to look closely, but it's along the guy's sleeve). What I'd love to do is change that part of the footer (not the left, page number side) to white text. This would make it quite a bit easier to read. There's a number of other pages in the book that I want to make this change to. I'm not sure why I never noticed it or mentioned it to the designer. I suppose I've become more discerning since then.
    Let me tell you what I've tried to do:
    I learned how to override master pages by CTRL+SHIFT clicking on the footer. However, this has not worked for me. It allows me to change the page number part, but not the copyright side. Additionally, sometimes when I override the master the formatting of the footer goes goofy. For instance, the left side and right side come together and end up in the middle of the page I'm working on.
    I'm looking for a quick way to go through and make the footers easier to read on pages where they are backed by a photo. Hoping you can help me. Please let me know if you need any other information.
    Best,
    Taylor

    I think you should have left it as it was. It seems like what you had was single pages flowing as spreads within InDesign. Like below. That is the correct way, and when you changed it to all single, it did create your footer problems.
    Will you be sending the file as a PDF to your online printer? If so, then leaving the InDesign file set as below is fine. The PDF output will separate the pages.
    All you have to do is make sure that Pages, not Spreads, is chosen when you output the PDF

  • How can I change the background color in the inbox?

    The background color in my inbox (well, all mailboxes) is white. A yellow background would make the existing black text a lot easier to read. How can I change the background color in the inbox?

    Themes work in Thunderbird - duggabe was not refering to Firefox.
    Another useful addon is theme and font changer:
    * https://addons.mozilla.org/fr/thunderbird/addon/theme-font-size-changer/
    However, Thunderbird allows you to modify all sorts of things.
    Make hidden files and folders visible:
    * http://kb.mozillazine.org/Show_hidden_files_and_folders
    Help > Troubleshooting Information
    Click on 'show Folder' button
    a window opens shwoing profile folder name
    Close Thunderbird now - this is important
    In the profile name folder, Create a new folder called '''chrome''' - note the spelling
    It should be in the same place as the 'Mail' folder.
    see first image below.
    Open Notepad
    Can be located : Start > Programs > accessories
    Copy everything shown between the lines below.
    Paste into Notepad.
    Save as '''userChrome.css''' - note the spelling (edit updated - this was a typo error)
    This should be saved in the '''chrome''' folder.
    see second image below.
    Restart Thunderbird.
    I have chosen a yellow for you
    <pre>
    #f6f58c = a yellow....it is a hex code for a colour.
    </pre>
    You can change it if required. Remember when updating anything in the profile folders, you must close Thunderbird first.
    More info on colours.
    * http://www.yourhtmlsource.com/stylesheets/namedcolours.html
    <pre>
    * Do not remove the @namespace line -- it's required for correct functioning
    @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
    /*Background colour for message list*/
    #threadTree > treechildren::-moz-tree-row {
    background-color: #f6f58c !important;
    </pre>
    -------------------------------------------

  • How to change the font color in a strict type def programatically

    Could someone suggest a way to change the font color of a string indicator in a strict type def cluster programmatically? The cluster contains a label that is color-coded to match the function of the data channel represented by that cluster.  The function of each channel is not predetermined, so the font color needs to be changed programmatically.  To represent all channels, I have arranged a large cluster that contains 100 instances of the control.  This makes it essential that the control be strictly type defined in order to change the layout of the clusters uniformly.
    Can anyone suggest either a method by which I can let the control remain a strict type def and change the font color, or a method by which I can programmatically change the control from a strict type def to a type def?  Currently, I am saving the control as a strict type def every time I make a change and then saving it again as a type def when I am ready to run the program.  This works fine, but just seems inelegant.  This color-coding is used throughout the program in various indicators, so a neat solution would be greatly appreciated.

    As mentioned in my Nugget on Type definitions you can create strict type-defs that contain type-defs.
    If you make your data definition a type and put that definition in a strict type-def (one of each flavor) you can use the appropraite strict type where each is required.
    Yes the data structure will have another level of nesting so if you are "too far gone" you may not like this idea.
    Otherwise you can write a VI that opens the typed-def and do a "save as..." and use it everytime you edit the type-def.
    I hope something helps!
    Ben
    Message Edited by Ben on 10-06-2008 10:26 AM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    Strict_of_Typedefs.PNG ‏30 KB

  • Can we Change the backround color of an Input field in Webdynpro for ABAP.

    Hi Experts ?
    Can we change the background color of an Input field in WebDynpro for ABAP based on results we receive from any function module or BAPI?? .
    Thanks in advance .
    Regards ,
    LAS

    Yes. We can change the background of an input field. The way you do this is by editing the theme that webdynpro application uses. To edit the theme, you will need to install NWDS PLUS the theme edit plugin (Available for download from SAP).
    Once you have edited the theme, you will need to upload your theme back to application server. You can use the program : BSP_UPDATE_MIMEREPOS to do this.
    Bydefault, the theme used by webdynpro applications is :
    /SAP/PUBLIC/BC/UR/nw5/themes/sap_tradeshow
    You can apply another theme by calling the webdynpro application with a theme parameter. For example, if my webdynpro application name is "zgopaltest", then
    <i><b>http://<server>:port/sap/bc/webdynpro/sap/zgopaltest?SAP-EP-THEMEROOT=/SAP/PUBLIC/BC/UR/nw5/themes/sap_tradeshow</b></i>
    will apply the sap_tradeshow theme.
    Likewise, you can apply diffrent theme. There is another theme that SAP provides. Its called : sap_hcb. Hence, you can apply the theme to the above application by:
    <i><b>http://<server>:port/sap/bc/webdynpro/sap/zgopaltest?SAP-EP-THEMEROOT=/SAP/PUBLIC/BC/UR/nw5/themes/sap_hcb</b></i>

  • Change unread message color in Mail

    I'm trying to mimic a particularly useful feature in Entourage, the show messages using these colors for read and unread messages. In Entourage you can simply set a preference to show unread messages as one color and read messages as another. Mail doesn't have this capability at all. You can set either the text color or the background color, but you cannot change this color depending on the status of the message (read or unread). The only thing I can do is either set the text or background color of all messages using rules, or set the text on unread messages to bold using preferences.
    I found an Applescript that sort of does what I want:
    tell application "Mail"
    set background color of (messages of inbox whose read status is false) to red--unread
    set background color of (messages of inbox whose read status is true) to none--default read
    end tell
    However, this script will not work if you change "background color" to "text color". It also changes the text color of the read messages in the preview pane to black when it runs the second part and I can't figure out a way to make the text a different color. I have a rule set up to set the color of text to a specific account, but the script overrides the rule.
    Any suggestions on how this can be done?

    I'm sorry you find my responses to be rude. I simply stated that you are not answering my question. I also said that I appreciate your attempts.
    I'm not trying to argue with you, but you come across as if you didn't even take the time to read my original post. Your replies all mention things I already covered in that post, such as the Mail option to display unread messages in bold, or using an Applescript or even trying another program.
    I was hoping that someone might be able to either tweak the Applescript I submitted or provide another option I hadn't considered, rather than simply suggest trying things I already said I've tried.
    Sorry that this offends you. That was never my intention.

  • How can i change my background color in "albums" mode back to black in iTunes 11

    how can i change my background color in albums mode back to black in iTunes 11?

    Themes work in Thunderbird - duggabe was not refering to Firefox.
    Another useful addon is theme and font changer:
    * https://addons.mozilla.org/fr/thunderbird/addon/theme-font-size-changer/
    However, Thunderbird allows you to modify all sorts of things.
    Make hidden files and folders visible:
    * http://kb.mozillazine.org/Show_hidden_files_and_folders
    Help > Troubleshooting Information
    Click on 'show Folder' button
    a window opens shwoing profile folder name
    Close Thunderbird now - this is important
    In the profile name folder, Create a new folder called '''chrome''' - note the spelling
    It should be in the same place as the 'Mail' folder.
    see first image below.
    Open Notepad
    Can be located : Start > Programs > accessories
    Copy everything shown between the lines below.
    Paste into Notepad.
    Save as '''userChrome.css''' - note the spelling (edit updated - this was a typo error)
    This should be saved in the '''chrome''' folder.
    see second image below.
    Restart Thunderbird.
    I have chosen a yellow for you
    <pre>
    #f6f58c = a yellow....it is a hex code for a colour.
    </pre>
    You can change it if required. Remember when updating anything in the profile folders, you must close Thunderbird first.
    More info on colours.
    * http://www.yourhtmlsource.com/stylesheets/namedcolours.html
    <pre>
    * Do not remove the @namespace line -- it's required for correct functioning
    @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
    /*Background colour for message list*/
    #threadTree > treechildren::-moz-tree-row {
    background-color: #f6f58c !important;
    </pre>
    -------------------------------------------

  • Change the background color for HToggleButton as State changed

    Hi , I want to change the background color of HToggleButton or HGraphicButton as its state changed as normal to focus and then focus to normal and same with actioned state .It is possible to change the image with different states but how can I do the same thing to change background color .I'll appreciate any help regarding this with thanks in adv.

    Satya,
    i_x denotes first column and not characctersitic 1.
    Also I am not sure if the check is to be for IS_SUM.
    Use Get_Cell_info class instance and then use the data returned by the same for checking IS_SUM and then change the cellstyle.
    Another thing to look out for is , the required change might be needed on DATA_CELL and notcharacteristic_cell.
    Arun
    Assigning points is a way of saying thank you on SDN

  • Changing hyperlink text color...

    I see how to change hyperlink text colors for a page (normal, rollover, visited, active) but I am hoping for something more complicated- I would like a link to change color on rollover, but stay that color until another link is clicked, then return to its original color. ( I have a swap image applied to five links on a page, clicking on each word displays a different image.) Is there any code I can add that will get a link to remain a rollover color until something else is selected? Thanks in advance!

    CSS menus are much leaner and more efficient than image rollovers.
    Persistent Page Indicator on CSS Menus
    http://alt-web.com/Articles/Persistent-Page-Indicator.shtml
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • How do you change text bubble color on iPhone4?

    I do not want to Jailbreak my iphone4 but I want to change the bubble color on my texts. I see on the iOS 4 preview that the text bubble color is light blue. How do I change mine?

    Classic Frost wrote:
    iMessage is completely free only if you are on wifi. If you are on 3G, it will use your carrier to send an iMessage, therefore it counts towards your messaging rates. If the message is green to another iPhone user, that means that your service hasn't recognized it as an iPhone.
    iMessages do NOT count toward messaging rates on 3G. They use the 3G data allowance. Messages to other iOS users can be in green (sent as SMS) if the user doesn't have an active data connection (either 3G or WiFi) at the time.

  • Change Chart background color during runtime

    I want to change the background color of my chart during runtime.
    I can set and read-out the color with a property node but the apperance on the frontpanel is not changing.
    After stopping the VI the chart suddenly gets updated.
    Please check my VI attached.
    Do someone knows a workaround?
    Attachments:
    chart.vi ‏9 KB

    Hello Robert,
    another option would be to place (for example) a vertical smooth box behind the chart and change the color of it.
    See my attachment.
    Best regards
    Attachments:
    Change chart background color.vi ‏12 KB

  • Is there a way to change the cursor color in TextEdit?

    If I am typing with white on a black background the cursor becomes invisible. Is there a way to change this besides to change the background color to another color?

    Sorry, but no.

  • Change Visited Link Color onClick of EPCM function

    Hi we have a link within an iview which when clicked opens another iview in the Portal Content Area. We are achieving that using EPCM.doNavigate function. The requirement is to change the link color when visited. We tried using both style sheet and also this.style.color, however, it doesn't take into affect. The same thing when used with a normal href or a js function changes its color.
    response.write("<td style='padding: background='"strImagePath"/header-background.gif'><a href=\"" + strQuickLinkName + "\"" +  " onclick=\"EPCM.doNavigate(\'" + strChildNodeName + "\'); return false;\" class='Archive'>Archive</a></td>");
    Is it that EPCM function doesn't act like normal java scripts or do we need to use any other alternative approach?

    On criagslist, however, it doesn't work.
    That sounds odd. When I visit craigslist, the links are blue; they turn purple when I hover over them, and orange when I actually click on them. And since it works on other sites, I'll venture a guess that the site was created with Windows users in mind, so it doesn't adhere to web standards, which is why it works fine with IE and Firefox, since they're both prominent browsers on Windows.
    Mulder

Maybe you are looking for