Jump to content
Search Community

Transformed image to Bitmap [SOLVED]

foldiman test
Moderator Tag

Recommended Posts

Now that I'm transforming images, I'd like to capture the distorted image for later use in my Flash app. Problem is, when I try to capture the bitmapData of the Display Object that I'm transforming, I get the original, non-transformed data....not the data from the transformed image.

 

Does anyone have suggestions for capturing the image data of the transformed image as bitmapData?

 

Thanks.

Link to comment
Share on other sites

Yep, that's normal. You need to use a Matrix when you draw() it to get the effect you're after. I don't remember all the specifics off the top of my head, but I think you just use the DisplayObject's transform.matrix and then for the Rectangle, you use the DisplayObject's bounds, like myObject.getBounds(myObject.parent). Google is your friend :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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