Jump to content
Search Community

How to get the transformed item as a IDrawable

Boris test
Moderator Tag

Recommended Posts

Hi,

i trying to calculate the exact position of a transformed Text-Area, but when i draw my BitmapData with myTransformItem.targetObject, there will be drawn only the unscaled TextArea. Im looking for the first dark Pixel inside that Transform-Item, but i need the scaled TransformItem.

 

How can i solve this?

 

best Boris

Link to comment
Share on other sites

That has nothing to do with TransformManager - it's just how Flash's BitmapData.draw() works. You need to read up on the matrix parameter of draw() if you want to maintain the transformations properly. Usually you need to use the object's transform.matrix value and make sure your BitmapData is sized appropriately.

Link to comment
Share on other sites

thnks jack -i know solved that Problem when i use

 

var m:Matrix = new Matrix(t.targetObject.transform.matrix.a,
														t.targetObject.transform.matrix.b,
														t.targetObject.transform.matrix.c,
														t.targetObject.transform.matrix.d,
														0,
														0);

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