Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Matrix.translate(tx,ty) for center registration

Participant ,
Sep 21, 2013 Sep 21, 2013

Hi,

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

TOPICS
ActionScript
1.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 21, 2013 Sep 21, 2013

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Sep 21, 2013 Sep 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 21, 2013 Sep 21, 2013

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Sep 21, 2013 Sep 21, 2013

after the image is rotated, i am using graphics to get the x,y,wd,ht and using bitmap i am copying the portion

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 21, 2013 Sep 21, 2013
LATEST

are you using the draw() method with a cliprectangle? 

if so, what's the problem?  if not, what specifically are you using to crop?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines