Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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 isn't rotated you can just use:

 

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

 

I haven't dabbled with graphics paths yet.. would that make things easier?

 

Thanks,

 

LiQuiD8

  • 2 weeks later...
Posted
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 isn't rotated you can just use:

 

If you're 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?

> NeoDataType.net <

Try my Free .Net Reporting Tool!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...