Jump to content

AlphaMask and keep some points


Gob0
 Share

Recommended Posts

Hi, 

 

i have to draw full circle (color can change at any time) on on image BUT i need to keep black points (other colors can be redraw with circle color). 

 

In the first version, i use a bitmapdata to store image and another bitmapdata for circle. To draw circle and keep black points, i iterate through circle points coordinates and check if point on image is black or not. 

It works pretty fine but is a bit (to be gentle) slow on tablet. After looking in examples, i discovered "alphaMask" and it seems very quick.

 

So i'm wondering: is there a simple way to achieve my goal using alphaMask? 

 

Thx for your help and advices.

 

 

Gauthier.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...