Changing Bitmap color using colorTransform

I have a bit of a problem where I have a function that takes a ColorPickerEvent. I'm a "loaded bitmap" colorTransform to a movieclip to the selected color, but for some reason any, it does not

// colour 
function setColourFor(e:ColorPickerEvent){
          var image:InteractivePNG = getChildByName(type) as InteractivePNG; // movieClip
          var bitmap:Bitmap = image.getChildAt(0) as Bitmap; // loaded PNG
          
               var c:ColorTransform = bitmap.transform.colorTransform;
          bitmap.transform.colorTransform = new ColorTransform();
          c.color = e.color; // colorpickerevent
          
          
          bitmap.transform.colorTransform = c;
     }

the color of the bitmap image does not seem to change.

It works but if I had to define movieclip colorTransform (var image)

I want to emphasize that the Bitmap contains PNG's with transparency

Hello

Change the last line of your service for:

bitmap.transform.colourTransform (bitmap.bitmapData.rect, c);

the first parameter is a Rectangle object defining the area of the bitmap image that affects the transformation

Tags: Adobe Animate

Similar Questions

  • How can I change the color used by highlighting the e-mail messages

    How can I change the color highlighting the e-mail messages?

    Hi Hofstra64,

    If you talk about the highlight appears when you select an e-mail message, this is related to the "Highlight color" parameter in your general settings of OS X. More information can be found in the following link:

      

    Highlight color

      

    Choose the color that you want to see when you put in highlight or select items.

    OS X El Capitan: General preferences

    https://support.Apple.com/kb/PH21910

    Thank you for using communities Support from Apple!

  • How to change the color using JavaScript

    How you specify the color of a shape by using JavaScript to animate?  The code below does not work.  I'm not find documentation on how to work with JavaScript in Animate out snippets of code in box provided.

    this.redBox.style.color = "#00FF00";

    this.redBox.style.color = "rgb (155, 102, 102);

    The API chart in canvas mode is CreateJS. CreateJS is very well documented.

    EaselJS v0.8.2 API Documentation: Graphics

  • How can I change the colors in the brush library?

    I use one of the decorative brush library Scatter brushes in Illustrator CS2. The brush produces stars that are scattered when I draw with the Brush tool. However, I need to change the color of the stars produced by this brush. I want to put the image produced the outline so that I could change the colors using the color palette. My question is: How can I change the color produced by the brush of point clouds?  Thank you.

    Select the line and in the object menu, choose Expand.

  • visited links not changing color using the latest Firefox and windows 10

    running windows 10 and the latest firefox freshly downloaded and installed.
    have checked the visited_links is enabled, and I'm not running in private mode
    I know it's only a problem of firefox like links change color using other browsers

    You can check for problems with the database places.sqlite file in the Firefox profile folder.

  • How to change the color of the elements of a digital picture (separately) programmatically by using the property node?

    For example, I have 3 digital controls, controlling 3 digital array elements (digital control is connected directly to the indicator). So if I change value in digital control 1, then the table item # 1 of the digital table should blush when the value is greater than 5. Similarly when I change NUM controls 2 item 2 of the table should turn red when the value control num 1 exceeds 10. Similarly for the 3rd element. In other words, I want to control the ownership of the elements of the array individually through the digital command separated.

    I did it for unique digital indicator.i.e. When I change the values of the control, then a single digital indicator changes color (text digital property BG) and with table values, changes the color of the entire table, but I want to change the color of the singles of the table element.

    Please help thanks.

    I hope you do well! You cannot change the properties of elements of an array. What you could do instead is probably using a table where you can change the background color of a cell?

  • How to change the color of the elements of cluster using the reference

    Hello

    I have cluster with 10 LEDS, each LED represents a test within my program, based on success or failure, I want to change the color of each LED, I use the cluster as input reference to test subvi.

    Is there a method to change the color of the induvidual elements?

    Thanks in advance.

    Can be used with any wire Ref properties are determined by the class of the wire Ref itself.

    Generic refs are geneirc properties.

    The FTA to obtain the properties of the elements within the cluster, you will need to tell LV class is a cluster. The same for the items in the cluster.

    Please consider this nugget on the help of control references. Don't worry about understanding everytihing that I wrote in this nugget, since it was written to be entertaining at all levels. Find the section where I show

    How to cast Ref nums as of specific types.

    Ben

  • How to change what color my brother printer using black or white etc.

    I don't know how to change the color of my use of the printer to my computer. /

    Hi, Zedannrobert,

    What version of Windows are you using?

    What is the make and model of printer?

    Start > Control Panel > printers folder

    Right-click on the printer icon and select Printing Preferences

    Click on the color tab

    Select your favorite color

    Click on apply, OK

  • Using Javascript to change the color of a button

    Hello

    I am changing a button from blue to red when selected.

    The button is named myShape.

    I tried:

    this.myShape.style.color = "FF0000";

    but no go.

    I also tried just setting the myShape as a clip instead of a button, but no go.

    The function of the button works as I have an alert is triggered when the button is clicked.

    Thank you

    Do you want to change the button color as long as it is which is clicked, or discoloration permanently after summer on it?

    If you just want to change while the click occurs, it's super easy with a button symbol: How to create buttons with Adobe animate (you would simply adjust the "low" State to be of whatever color you want.)

    If you want to permanently change, you could create a clip below an invisible button, and when the button is clicked you might it have to reach a specific image in the clip. in this image, you can use a shape tween to change the color of the shape of button, or you can simply use a keyframe to set the color of what you want it to be.

    Here is a small example of work of two of these options: https://www.dropbox.com/sh/jnrerw6suqfmpu6/AACC8_yuznQzf7h3esVU5VXya?dl=0

  • Change the DIV colors using liquid markup

    I'm trying to change the order status page layout widget to suit my site, but I want to make is if the order contains 0 the div remains green and if she has another number greater than 0, it will change the color of the div to the Red

    the code snippet is below:

    < class 'number' p = > {% if the statutes contains statusId-%}
    < script > document.write (counts [{{item.id}}]); < /script >
    {%-%}
    0
    {endif %}
    command < /p >

    < class p = "liquid" > {endfor %} < /p >}

    ignore the < p > it is a quick solution to hide the liquid while designing the page layout

    Change your code as follows:

    {assign = 'green'-% statusClassColour %}
    {% If the statutes contains statusId-%}
    {assign = 'red'-% statusClassColour %}
    {endif %}


    {% If the statutes contains statusId-%}

    {%-%}
    0
    {endif %}
    order

    In css, do status_red and status_green to change the colors for you. Adapt the names accordingly if you wish.

    PS: If you want to hide liquid, use the {% comment %} is the code to be hidden {% endcomment %} tag.}}

  • Hello, I want to make an outline of the text that I created.  I started with a blue background.  Then, I created a text and changed the color of gold.  I then put on an image and used the clipping mask to show the image by the text. Problem

    Hello, I want to make an outline of the text that I created.  I started with a blue background.  Then, I created a text and changed the color of gold.  I then put on an image and used the clipping mask to show the image by the text. Problem is it gets rid of color and shows that the peak through the text.  I wanted a draft of the text with the picture.  Is this possible?

    Thank you

    Peter

    You're welcome, Peter.

  • I can't change the color of the text or objects? The color window is just grayed out. I don't only use shades saved already. Any ideas?

    I can't change the color of the text or objects? The color window is just grayed out. I don't only use shades saved already. Any ideas?

    Start by we tell what version of InDesign? What operating system /.

    Try to restore your InDesign preferences:

    Garbage, replace, reset or restore the application's preferences

  • How I changed the color of something? OK, so I use to be able to change the color of things, but now I have use color overlay, gradient overlay, or change the color when I first create the form, it turns into another shade of gray instead of chan

    How I changed the color of something? OK, so I use to be able to change the color of things, but now I have use color overlay, gradient overlay, or change the color when I first create the form, it turns into another shade of gray instead of change the color, I chose.

    Three things I can think of:

    Your document must be in RGB mode.

    Layer blending mode should be set to Normal

    Masks are grayscale. If you select the mask, you cannot apply a color.

    Always check your tab at the top to see if what you choose is RGB or grayscale.

    Gene

  • When checkboxing 'Use as Button' - how to change the color of overview?

    Smart form with the text: when checkboxing 'Use as Button' - how to change the color of overview?

    In the button shape properties panel, you will find a 'Normal' field, if you open the drop-down list you see the other two States, select and change the Fill/Color/Character...whatever you want.

    If you want to use the States for this button several times, I recommend to save the style or to create styles in the object Style Manager where you can also modify built-in three States: Normal, rollover and down.

  • When I copy something from one page to another, it seems to change text color or background, that I do not understand why he never used to do.

    When I copy something from one page to another, it seems to change text color or background, that I do not understand why he never used to do.

    Whether it's text or only a shape it changes its color to something else when I copy and paste on.

    Do you mean 'page' or 'site '?

    If you copy something from another site, the reason may be, to have different, but all also named colours on each site.

    It would be normal and causes the noticed effect.

Maybe you are looking for

  • Register on itunes

    Why can't register on itunes with one identifier Georgia apple? country is not in the list.

  • Envy 17 t-j000: Win8 activation key lost in envy 17 t-j000

    I had a disk error hard mbr and couldn't get my laptop to come. I had to go to the recovery partition and restore the laptop to how when purchased in July 2013. I ordered the laptop directly from hp and it has no key Windows 8 in email, or on laptop

  • 15 - d004sx

    I need the drive

  • The use of SQLite to store the JSON object

    Hello Can someone guide on how to store a JSON object returned after the use of the Adobe provide parser JSON which returns the native object as resultobject = JSON.decode (data) Where the data is a JSON string. The 'result' object is a complex subje

  • Certificate for Digital Signature ID on Android

    Is it possible to use/create/import a digital ID certificate and be able to sign PDF documents on Android smartphone?  I looked at the filling and the sign and the sign of Adobe, but just, which adds fancy text or use your finger to add a signature.