ActionScript 3.0 :: Change A Color To Another In A BitmapData Image?

Nov 10, 2011

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 itIs 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

View 3 Replies


Similar Posts:


ActionScript 3.0 :: Change The Image Or A Mc Color To Black And White Color?

Oct 8, 2011

How to change the image or a mc color to black and white color?

View 1 Replies

ActionScript 3.0 :: Change The Color Tone Of The Image Without Changing The Structure Of The Image?

Sep 19, 2011

I need to change the color tone of the image without changing the structure of the image.
 
for ex: I like to change the skin tone of my head part of image. Is it possible to change the skin tone color.

View 2 Replies

ActionScript 3.0 :: Change Color Of Image?

Apr 27, 2009

I am trying to build a script that will allow a user who visits a website to change the color of a house.
 
For an example, when a user visits the site they are able to view a picture of a house with a default color of white. When the click on a button "Roof" the user is able to pick from a select number of roof color options.
 
Same goes for siding, and trim.
 
I am hoping with a web presense in this economy, maybe it will turn things around.
 
What I have seen,
 
I have seen some sites use shape overlays.
 
So they take an image, and (I am not sure if it is in Flash or Photoshop) they make a cut out of the roof, then they make 10 copies of it in different colors. For some places I have seen them descibe it at frames for each color. Yet I am not sure how you call upon it on click?
 
Anyways I am very lost and need a mentor.
 
Here is an example of what I am trying to do, but with a house:
 
[URL]

View 4 Replies

Flex :: Change An Image Color?

Jul 14, 2011

I have a doubt in flex 3.

I'm trying to change an image color in flex 3, but I can't get it still. I think have to change the image color by using pixels, but I don't know how to do it.

View 1 Replies

Flex :: How To Change An Image Color

Apr 18, 2005

I have a doubt in flex 3. I'm trying to change an image color in flex 3, but I can't get it still. I think have to change the image color by using pixels, but I don't know how to do it

View 1 Replies

ActionScript 2.0 :: How To Change Color Of Image Within MovieClip

Dec 27, 2010

I am trying to change the color of an image within a MC using color matrix. What I want to do is adjust he hue, saturation, contrast, and brightness so I can create a realistic color change without affecting shadows when you click on a color box. I have played with the filters within the application and can achieve it but want to do so with actionscript.

On each button I have a code similar to...
on (release){
_root.page = "color2";
_root.myClickedBtnFunction();
}

Then within the primary timeline I have if then's under the myClickedBtnFunction to the effect of...
if (_root.btn=="color2"){
code will go here...
}
Here is a link to the file I am trying to apply the effect to [URL].

View 1 Replies

ActionScript 2.0 :: Change The Image Color From RGB To Grayscale?

May 9, 2005

can i change the image color from RGB to Grayscale in flash mx 2004 with Action script

View 5 Replies

ActionScript 1/2 :: Change Color Image To Black And White?

Oct 7, 2009

I have a color image. I want to change half portion of image to black and white. Can anybody gice me the idea for doing it.

View 1 Replies

Professional :: Possible To Change Color Of Image To Specific Code?

Mar 18, 2011

Since I was unable to do this in Photoshop, I was wondering if there was a way in Flash to simply change the color of an image to a speciifc color code. The image is more or less a simple line with rounded corners. It is only composed of 1 color.

View 1 Replies

Professional :: Font Color Does Not Change While Editing An Image?

Nov 7, 2011

I have an aplication which brings up an image for editing in flash. Here is what happens. I click on A tool and insert 2 text boxes on the image and type something. Then I click on the Arrow tool and double click on text in Text box 1 to select it. Then try to change the font color from the font menu icon. It does not work. But after selecting the text in text box 1 and trying to change the font size from the menu seems to work fine.

View 5 Replies

Actionscript 3 :: Flex Change Image Color Dynamically?

Jun 3, 2011

I have a image declared like the following:

[Bindable]
[Embed( source="assets/banana.png" )]
public var iconBANANA : Class;

It is involving into itemRenderer, but I wish to change the color of the image when some event occurs (like clicking above or something). The rest of the objects used the image shall remain unchanged, only the object on which the event has occurred shall change the color of the image. But the biggest question is: How to change the image color mainly - like there is a Blue area on image - to turn it on Green, or Yellow?

View 2 Replies

ActionScript 3.0 :: Change Image Color Mode (Grey Scale)?

May 27, 2009

i have loaded a colorful image. when i rollover this image, then the image has to change in grey scale.i think it can be done with filter adjust color, but i want to do this with scripts.

View 3 Replies

ActionScript 1/2 :: Change Image Color Mode (Grey Scale)?

May 27, 2009

i have loaded a colorful image. when i rollover this image, then the image has to change in grey scale.i think it can be done with filter adjust color, but i want to do this with scripts.

View 2 Replies

ActionScript 2.0 :: Change The Image Color From RGB To Grayscale In Flash Mx 2004?

May 9, 2005

can i change the image color from RGB to Grayscale in flash mx 2004 with Action script

View 5 Replies

ActionScript 3.0 :: Extracting Certain Color From Bitmapdata?

May 25, 2011

basically my issue is that im trying to extract a certain color from my bitmap data, i have the bitmap data being created from an image the user specifies and i can/have drawn that onto the the stage, which works fine and dandy but what i need to do is extract a color from the image and present just that to the user but try as i might i cant get it to work

View 1 Replies

ActionScript 3.0 :: BitmapData Color Replacing Within A Range?

Jun 15, 2009

I'm trying to replace a range of colours programmatically - I have sprites for a game that have parts of them in shades of magenta specifically so they can be recoloured to show their team colour (blue,red,etc).I've been able to use BitmapData.threshold() to replace a single specific colour with another. What I need to be able to do though is set some sort of range of colours and appropriately shade them blue/green/red while keeping their relative light/dark shades.Here's what I've used to do a single colour:

Code:
var thisBitmap:Bitmap = MySpriteBitmap; //source bitmap
var colouredBitmapData:BitmapData = new BitmapData(thisBitmap.bitmapData.width,

[code]....

View 5 Replies

ActionScript 3.0 :: BitmapData - Pixels Must Have Specified Gray Color Value

Aug 1, 2009

I need to create, from a given Bitmap/BitmapData of a PNG file which has transparent and semitransparent pixels, another BitmapData which is a copy of it, but all the pixels (well, the pixels that are not alpha 0% actually) must have a specified grey color value (0xdddddd).

View 2 Replies

Flex :: Make Transparent Color In BitmapData?

Jul 3, 2010

I have a code like this:

[Code]....

I want to make the white color in the generated PNG transparent.

View 1 Replies

Actionscript 3 :: Removing Pixels Of One Color From A Bitmapdata?

Feb 24, 2012

I have a map (map of a mall, top view) with some colors. I´m removing the part for walking of the map, which has a type of color (say 0xcccccc).

I got all the 0xcccccc color pixels removed (setted to another color), but it seems to remain a bit of gray at the walking part.

The color of that bit it´s close to 0xcccccc. It looks like flash not succeeded while removing the walking part. But instead, leaved some parts (like borders or something) on the bitmapdata.

I´ve tried to remove by script, by picking the colors remained on the bitmap, but the loop doesn´t find these colors.

View 1 Replies

ActionScript 2.0 :: Way To Change The Color Of An Object WITHOUT Changing The Color Of A Glow?

Sep 22, 2011

I have a few movie clips that change color when they are rolled over and rolled out of which is great and works correctly but now I have add glows to those buttons to serve as borders or a stroke and when you roll over the buttons the color and the filter color changes.

View 3 Replies

ActionScript 3.0 :: XML Font Color Call - Change The Color Of A TextBox Via Xml

May 20, 2011

I'm trying to change the color of a textBox via xml but i'm stuck with this code:

ActionScript Code:
xmlLoader.addEventListener(Event.COMPLETE, loadXML);
function loadXML(e:Event):void {
xmlData=new XML(e.target.data);
var titleColor:Color=xmlData.appTitle.titleColor.text();
sTitle.textColor = titleColor.toString();
}

View 2 Replies

Actionscript 3.0 :: Flash Buttons (Up - Over - Down - Hit) - Button Color Change To A Different Color

Feb 24, 2011

What I am trying to do is to have the button color change to a different color when it is on the page. The color only changes when I roll over it or hit it. Once I am on the page it changes back to the color it is on the up state.

View 1 Replies

ActionScript 2.0 :: Return MC To Original Color After Dynamic Color Change?

Apr 21, 2005

How is it done? All I've seen on the web is how to change the color. Well how about going back. I'm talking about a MC with many colors. I can't just change back to a single hexadecimal color.

I can accomplish the change as it passes over a frame, but I can't get it to change back.

In the frame is this:

Code:
cHurtColor = new Color(_root.compMC);
cHurtColor.setRGB(0x00FF33);

View 6 Replies

ActionScript 2.0 :: Return MC To Original Color After Dynamic Color Change

Apr 21, 2005

All I've seen on the web is how to change the color. Well how about going back. I'm talking about a MC with many colors. I can't just change back to a single hexadecimal color.I can accomplish the change as it passes over a frame, but I can't get it to change back.[code]

View 6 Replies

ActionScript 3.0 :: Taking Bitmapdata Of An Image Scaled Down With Overlay Objects On The Image?

Apr 26, 2009

hi guys, i got this image i scaled down by .5. The user is then allowed to add objects to the image such as flowers that are sprites in the library. So basically, a jpeg that is 800 x 800 is down to 400 x 400 on the stage and the user is able to add objects to overlay the image.

i want to save the image with the flowers and objects back to its 800 x 800, how do i redraw this image using bitmapdata properly?

View 2 Replies

ActionScript 3.0 :: Change Stroke Color And Not The Fill Color

Oct 27, 2009

I am looking for a way to change stroke color via AS3. The objects I would like to change are created with flash professional. They do have a fill. I just want to change the stroke color and not the fill color... is this possible? ... or am I stuck removing all fills and using a filter?

View 1 Replies

ActionScript 2.0 :: Using Color Picker To Change Line Color?

Jun 18, 2010

I am building a line drawing movie where I would like the user to be able to change colors using the AdvColorPicker I downloaded from Sephiroth.it.I don't know how to write the code that will change the line color upon picking one from the AdvColorPickerHere is the actionsript for the line drawing:

ActionScript Code:
colors.onMouseDown = function() {
if (1) {

[code]......

View 9 Replies

ActionScript 2.0 :: Random Color + Change Color With Ease?

Nov 17, 2004

I�d like to add something more but don�t know how.I[d like to make the MC to load a random color, in a color range that I specify, like #000000, #FFFFFF and #111111.Also, I want somew buttons to change between this colors, but with an ease transition.

View 1 Replies

ActionScript 2.0 :: Change The SetFocus Color From Black To A Different Color?

May 9, 2008

if its possible to change the setFocus color from black to a different color. Ive seen it on the web some where but i cant remember where??

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved