Bounding Box for Rotated Image

Category: Rotation

Date: 03-28-2012

Return to Index


 
New_width = X*ABS(cos(D)) + Y*ABS(sin(D))
New_height= Y*ABS(cos(D)) + X*ABS(sin(D))
D is in Radians
 
         GetDialogBounds   'calculates rotateW/rotateH to fit RulerW/RulerH
 
'gbs_00923
'Date: 03-10-2012


created by gbSnippets
http://www.garybeene.com/sw/gbsnippets.htm