Rotated Region

liquid8

Active member
Joined
Jan 14, 2003
Messages
31
There may be a bit of math involved in this, or maybe there is an easier way... If I have a rotated string or a rotated picture with GDI, how can I determine the exact region of it.. normally if it isnt rotated you can just use:

New Rectangle(me.left,me.top,me.height,me.width)

I havent dabbled with graphics paths yet.. would that make things easier?

Thanks,

LiQuiD8
 
There may be a bit of math involved in this, or maybe there is an easier way... If I have a rotated string or a rotated picture with GDI, how can I determine the exact region of it.. normally if it isnt rotated you can just use:

If youre searching just for the bounding rectangle it is simple:

Do a loop on each vertex, take the upper-left, the upper-right, the bottom-left and the bottom-right.

yes... too simple :) was this the question?
 
Back
Top