Skip to main content
A_kameshwaran
Inspiring
September 21, 2013
Question

Matrix.translate(tx,ty) for center registration

  • September 21, 2013
  • 1 reply
  • 1346 views

Hi,

     Would liket to know how can i set the tx,ty value dynamically for the bitmap for the angle >= 0 to 360 degree.

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
September 21, 2013

what's the relationship between tx,ty and some angle?

A_kameshwaran
Inspiring
September 21, 2013

I have a movieclip with center registration. I am allowing the user to rotate and crop the  portion.if the rotation is 0, then i can able to crop the image. if image is rotate then i am not able to crop the particular portion. i am setting the translate value tx = width/2 and ty=height//2. i doubted the problem is in translate. thats the reason i am asking for the assiging of tx and ty.

kglad
Community Expert
Community Expert
September 21, 2013

if the image is rotated, what shape is used to crop the image and how are you cropping the image?