Bounding Box for Rotated Image

Category: Rotation

Date: 02-16-2022

Return to Index


 
New_width = X*ABS(cos(D)) + Y*ABS(sin(D))
New_height= Y*ABS(cos(D)) + X*ABS(sin(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