How do I change a color to another in a bitmapData image?

Let's say you have an image of a cartoon human that is wearing a blue jacket with white sleeves, blue shoes, and grey pants. Brown hair and biege skin tone.
(My project actually has 1300 of these images - 325 are blue cloths, 325 are red cloths, 325 are green cloths, and 325 are purple cloths)
I am having a major problem with file size and memory usage due to all the images, so I have been asked to see if there was a way I could programmatically change the clothing color... this way we can use any color we want, and only have 325 base images.
I have been trying to play with color matrix filter and color transform, but I can't seem to get the hang of it
Is there a way I can extract only the "blue" colors from the image and do a hue shift on it to the color that I want it to be without effecting the non-blue colors?
My idea was something along the lines of:
Copy the "blue" color channel, hue shift it, then merge it back into frame....

Oh boy... this seems to be an issue with your manager wanting it done 'NOW' rather than 'CORRECTLY'.
For my original statement to work, the clothing would have to be seperated from the people - as per your suggestion to them - which would make your lives a whole lot easier.  The problem with hue shifting the entire image is --> it will hue shift the entier image = all colors, and that may not be the best solution in your situation.
I would suggest replacing the pixel color (eg. getPixel32 and setPixel32 for the size of the image) but it seems that the shoulders and shoes have a darker color tone than the rest of the body.
Secondary solution:
Import one of the image into Flash and do a bitmap trace of the image. 
Seperate the clothes and people there. 
Add the clothes as a new movie clip and change the color on a few frames 5 or so different colors (so its not too much work)
Show them an example of how 'easy' it is to change the colors CORRECTLY when the images are seperate (even in the same file)
The secondary will give them the 'all in one file' they requested... and also give you solid grounds for convincing them to change the graphics.
Hope this helps.  Other wise... its a long not so nice solution which will go over budget because they did not plan for this before they made the graphics.

Similar Messages

  • How Do I Change The Color Of Part Of A Vector Image In CS6?

    I have created a shape using the rectangle tool. I have then selected a section of this using the Marquee Tool (I get the running ants) but how do I change the color of the selection? I have been following a few tutorials where they say press Control-U or select Fill from the Edit menu but it is grayed out.
    Any help would be most welcome.
    Many Thanks
    PS I am using Photoshop CS6 Extended.

    Hi,
    Here's but one way to change the color of just a specific portion:
    1. Make your selection
    2. Go to the bottom of the layers panel, click on the Create New Fill or Adjustment layer icon and then click on Solid Color
    That puts a new color fill adjustment layer above the shape using a layer mask from your selection.
    If you want to change the color, double click on the color fill thumbnail icon in the layers panel.
    (in the example below you would double click on the green icon in the layer panel)

  • How can I change the color of all folders from light blue to another color?

    My computer was just upgraded from Tiger to Leopard, and now all the file folder icons are pale blue on the desktop and elsewhere. My desktop is green and those light blue folders do not look good on a green background.
    How can I change the color of the folder icons to another color?

    Hi ys,
    You appear to have taken a wrong turn on the information highway and would up in the backwater known as the AppleWorks forum. This is a place for discussion of issues and techniques connected with the now discontinued Apple productivity application AppleWorks.
    Yours is a System question, concerned with how to accomplish something in the Finder, part of the Mac OS X software you recently upgraded. The question will be better served in the Mac OS X v10.5 Leopard section of discussions. The link will take you to that section, where I'd suggest using the Finder and Dock forum.
    Regards,
    Barry

  • With IOS 7.0 How do you change the Color Red, that shows up on the Calendar to another color? People with certain eye problems cannot tolerate the color Red.

    How do you change the Color Red, that shows up on various points of the Calendar to another color? Persons with certain eye problems have visual irritations that can be caused by the color Red. This problem came up with the update to IOS 7.0.

    Sorry but you cant

  • How can i change the color of the text on a button in Roll Over or Click state (Cs5.5)

    Hello,
    Here is the problematic:
    1° How can i change the color of the text on a button in Roll Over or Click state (Cs5.5)
    - I've many button in a doc im creating
    - the color of the buttons is white with black stoke & black text
    - in roll over state i want them to inverse the color coding (the text white & bottom black)
    - currently the text becomes invisible as black on black cant be seen (ive stroked it white but that looks ugly)
    - i would just like to know if there is a function made for this?
    My other questions:
    2° Ive a presentation on which Ive created buttons which tigger pop-up animations
    - i have 5 buttons which trigger animations
    - the viewer can chose to Click on any of the buttons randomly
    - the problem is once the animation is open how can it be close... either:
    a) by it self after "40" seconds
    b) when ther viewer clicks another button
    3° Ive created buttons linking pages..
    - "go to page xxx"
    - when i do a preview and click on the buttons the links dont take me to the right pages
    - is that normal? (maybe in preview its suppose to be like that)
    4° I would like to intergrate YouTube videos in the presentation so they play inside the docment.. when i tried.. it said the 'link isnt a flash video'
    - what should i do?
    5° Once i export it into Swf. how how can i visualize it? or put it online?
    Thank you for your time.

    stlbbl4u wrote:
    Hello,
    Here is the problematic:
    1° How can i change the color of the text on a button in Roll Over or Click state (Cs5.5)
    - I've many button in a doc im creating
    - the color of the buttons is white with black stoke & black text
    - in roll over state i want them to inverse the color coding (the text white & bottom black)
    - currently the text becomes invisible as black on black cant be seen (ive stroked it white but that looks ugly)
    - i would just like to know if there is a function made for this?
    You should setup Object Styles - these can also include Paragarph Styles that can be triggered when the Style is selected.
    http://help.adobe.com/en_US/indesign/cs/using/WS5CEDB81A-0011-4dc9-9DE8-AC7AD4C80076a.html
    My other questions:
    2° Ive a presentation on which Ive created buttons which tigger pop-up animations
    - i have 5 buttons which trigger animations
    - the viewer can chose to Click on any of the buttons randomly
    - the problem is once the animation is open how can it be close... either:
    a) by it self after "40" seconds
    b) when ther viewer clicks another button
    I'm not sure what you mean - I don't do files with Animations
    3° Ive created buttons linking pages..- "go to page xxx"
    - when i do a preview and click on the buttons the links dont take me to the right pages
    - is that normal? (maybe in preview its suppose to be like that)
    Does it work properly when you export it to the finished file?
    4° I would like to intergrate YouTube videos in the presentation so they play inside the docment.. when i tried.. it said the 'link isnt a flash video'- what should i do?
    InDesign won't link directly to youtube videos. I think your best bet would be to use Downloader to download the video and embed them directly in Indesign.
    5° Once i export it into Swf. how how can i visualize it? or put it online? 
    Thank you for your time.
    You can look up how to embed a SWF file into your HTML - but it depends what you mean by "online" there's a dozen ways to get a file "online".

  • How can i change the color of the graph in agreement of the program's condition

    Hi,
    I am using labview 5.1 in my graduation's project final. (sorry by my english, but i am ina hurry)
    How can i change the color of the graph in agreement of the program's condition?
    I am developing a VI to control the temperature of termistors,but i have another sensor too.
    In a graph i have the situation of the termistors,but i want to change the color of the graph when the sensor is active.
    Thanks a lot
    Rafael Wajnsztajn - Brasil

    To change the color of the line itself, you can use the attribute Plot>>Plot Color.
    To change the color of the points, you can use the attribute Cursor>>Cursor Color.
    To select the color, you should have a color box constant inside the Numeric>>Additional Numeric Constants palette.
    This is all in LV 7.0. I'm not sure how it similar it is in 5.1.
    One important thing is to place the attribute node inside a case structure which will execute only when your condition has been filled.
    If this didn't help you, I suggest you post the relevant piece of code, or at least an image of it (no BMPs, please).
    Try to take over the world!

  • How can I change the color in this "pieces"

    Hello guys, I'm new in the forum and I'm searching for help.
    I'm using a free template that I downloaded from
    the internet but I'm having a small problem.
    When I put the logo that I want use in the template, the color is not the original one,
    after some minutes trying to discover how I could change it to the original version of the logo, I found an option on "fill" with a color that I could change..
    the problem is that when I change the color, all the logo changes in the same time, so I created 2 logos.. one of then only with the dark color and the other with the red color
    so with this method I could change both colors on this "fill" option and all would be okai.
    the problem is that both of the logos are changing in the same time.
    I need to change the X to RED and the Moto to Black
    Another problem that I have is : the little pieces of the logo that come all togheter, they are all black.. and i need to change it to the right color.
    cause the text are in one color and the pieces are all black.

    I did it, but i saw that Fill effect is a little "Shadow" behing the text... just for a small white line... I'm almost done with this intro, now I'm trying to find out how can I change the color from the X and MOTO
    cause when I change the color, both changes, and this can't happen.
    I need the X red and the Moto dark...
    I made 2 compositions ... one with just the X  X red.. and another with just Moto in dark color... but I don't know how to put this 2 compositions in 1 composition.

  • How can I change the colors of a photo?

    How can I change the colors in a photo?

    No. You'd need an external editor for that kind of stuff:
    In order of price here are some suggestions:
    Seashore (free)
    The Gimp (free)
    Graphic Coverter ($45 approx)
    Acorn ($50 approx)
    Pixelmator ($50 approx)
    Photoshop Elements ($75 approx)
    There are many, many other options. Search on MacUpdate or the App Store.
    You can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically. This is the only way that edits made in another application will be displayed in iPhoto.
    Of course, you may not want to change the shape of a photo which would distort it. You may want to print it in an oval shape but undistorted. I'd use a page layout app like Pages for that,

  • How do you change the color of the sign and fill text to the color blue

    How do you change the color of the sign and fill text to the color blue in a pdf document

    Is this using the "Fill & Sign" tab of https://cloud.acrobat.com/fillsign (for now text input is only black) or maybe using the Fill & Sign tool in Adobe Reader XI, or another application? 
    Thanks,
    Josh

  • How can I change the color on the source?

    I have a Dreamweaver 8 for Macintosh.
    On Code window, how can I change the color on "option value="
    from orange to perhaps red? It is hard for me to see the orange
    fonts on the source.
    Another one, how can I change the font size on the source?
    (Not on the design window).

    >>
    how can I change the color on "option value=" from orange to
    perhaps red?
    >>
    edit -> Preferences -> Category "Code Coloring". Now
    select "HTML" from the "Document type" list and click the "edit
    coloring scheme" button.
    in the next dialog "edit coloring scheme for HTML" you can
    either select "HTML form tags" from the "styles for" list or click
    within the sample form displayed in the "Preview" below -- just use
    the "Text color" color picker to switch the default "orange"
    (#FF9900) value to red
    >>
    how can I change the font size on the source?
    >>
    edit -> Preferences -> Category "Fonts" :: select the
    desired font from the "Code view" menu and change the font size
    from the "Size" menu to the right

  • HT1918 How do i change my username to another when they both have accts with itunes one is on my computer and one is on my ipad? Two different e-mail address that are both mine....so how do i make one acct for both?

    How do i change my username to another when they both have accts with itunes one is on my computer and one is on my ipad? Two different e-mail address that are both mine....so how do i make one acct for both?

    If you selected open a new Apple ID account, go back a step and enter use existing Apple ID.
    You will have to set up a separate iCloud account or your iPads will mirror each other.

  • In working on a simple home budget,  how can I change the color of a negative number to red,  during the period the number is negative.    Thanks,

    Using Numbers spreadsheet and In working on a simple home budget,  how can I change the color of a number to RED when it  comes up negative.  (only during the time that it's negative)  Thanks,  ( I hope I did this right!!) 

    The Inspector offers choices of format for negative numbers when you choose Number of Currency as the format for a cell. Also offered when the format is set to Automatic, IF the selected cell(s) contain number(s).
    The choices are in the pop-up menu beside the box for number of decimal places.
    Regards,
    Barry

  • How do I change the color of font in a fillable form in Adobe Reader? How can I check if the writer of the document has given permission to edit color and not just add text?

    How do I change the color of font in a fillable form in Adobe Reader? How can I check if the writer of the document has given permission to edit color and not just add text? Please help! I'm technologically challenged.

    Most forms (99% or more) are created for simple text input, where you cannot change anything.
    The creator of the form could allow Rich Text input (which allows you to change font, text size, color, etc.), but frankly I have never seen such a form, and I wouldn't know how they look.  But I'm sure they would show some kind of controls to alter the text appearance.

  • How can I change the color of birthday calendar?

    The birthday calendar in the new iPhone OS gets it color automatically. How can I change the color? It does not correspond to the color in iCal on my Mac.

    I figured out a solution for changing the other calendars but not the birthday calendar. Although it's not the most direct fix, it worked for me. Apparently Apple didn't think to give us the ability to choose the calendar color. I use Entourage and sync over the air. When I upgraded to iOS 4 my calendar turned bright red and the birthday calendar was blue. I don't use the birthday calendar so it isn't even enabled in my case. What finally worked was to go through the calendar colors one at a time by disabling and re-enabling the calendar in my mail account settings. I would double click the home button to quickly switch between settings and calendar to check the color each time I enabled the calendar. I had to do this 4 or 5 times to cycle through until blue came back up.

  • How do you change the color of events on ICal.

    How do you changed the color of events on ICal? I was able to do this when I utilized ICal on the Snow Leopard system but can no longer do this with Lion.
    I know that I can select the Calanders list, but when I create a new "Calander" it doesn't allow me to choose a color and it doesn't show up in my list when working within an event.
    Thanks!

    Phoebe,
    Right-click on the new calendar and select "Get Info."
    Make sure that the ✓ mark is selected.
    Then choose the color from this pane:

Maybe you are looking for

  • Can I open file in shared mode so that multiple users can write at same tim

    Hi,   I want to write to a trace file from a user exit and BADI. But I want to create only one trace file in which multiple users can simultaneously append. Is it possible to do this? How? Code could really help as this is urgent. Thanks for reading.

  • How to Set Album list view as default

    MacBook Pro 3,1 SL 10.6.7 iTunes 10.3.1 inverted-store-links if i use the »inverted-store-links« i always get the list-view instead the before used album-list. i think the same problem with playlists always shown in list-view by default. maybe there

  • Third Party Billing Server

    Hello All We have call manager 7.0.1 and a billing server which gets calling informations and shows it in a web format.I have a problem sending informations to that server,from which part of the call manager i force to send information to my billing

  • ***Oracle's language support***

    hai everybody, I have a senario of storing foreign in the db...that is i need to store characters of japaneese together with the current language ('English')...so can you explain about the prerequisites and steps to do this multilingual support.. my

  • Zen Micro charge while connected to USB?

    It seems that after i hook up my Zen Micro to the computer to upload songs and stuff, that all three bars on the battery icon are full. Does the player charge WHILE it is connected to the USB, or is the battery icon just messing around with me?