Click here to Skip to main content
15,912,837 members
Home / Discussions / C#
   

C#

 
GeneralRe: Rotate and Resize a Rectangle Pin
Madmanxxx31-Mar-09 0:32
Madmanxxx31-Mar-09 0:32 
GeneralRe: Rotate and Resize a Rectangle Pin
musefan31-Mar-09 0:45
musefan31-Mar-09 0:45 
GeneralRe: Rotate and Resize a Rectangle Pin
Madmanxxx31-Mar-09 0:54
Madmanxxx31-Mar-09 0:54 
GeneralRe: Rotate and Resize a Rectangle Pin
musefan31-Mar-09 1:00
musefan31-Mar-09 1:00 
GeneralRe: Rotate and Resize a Rectangle Pin
Madmanxxx31-Mar-09 1:09
Madmanxxx31-Mar-09 1:09 
GeneralRe: Rotate and Resize a Rectangle Pin
musefan31-Mar-09 1:15
musefan31-Mar-09 1:15 
GeneralRe: Rotate and Resize a Rectangle Pin
Madmanxxx31-Mar-09 21:32
Madmanxxx31-Mar-09 21:32 
GeneralRe: Rotate and Resize a Rectangle Pin
musefan31-Mar-09 21:46
musefan31-Mar-09 21:46 
ahhhhh.... now i think i get your problem. if the rectangle is at a 45 degree angle then you need to be able to stretch/shrink it width ways or height ways.

if this is correct then im not sure of the best method to take but initial thoughts would be to first detect which of the four points of the rectangle is furthest to the left, this one will not change, then all the others are moved to the right depending on how much the mouse has changed. then for the height you would move all points except the one furthest to the top.

Sorry I cant think to suggest anything else

Life goes very fast. Tomorrow, today is already yesterday.

GeneralRe: Rotate and Resize a Rectangle Pin
Madmanxxx31-Mar-09 22:25
Madmanxxx31-Mar-09 22:25 
Questioncreate enum at run time Pin
a.hamidy30-Mar-09 23:13
a.hamidy30-Mar-09 23:13 
AnswerRe: create enum at run time Pin
musefan30-Mar-09 23:18
musefan30-Mar-09 23:18 
GeneralRe: create enum at run time Pin
a.hamidy31-Mar-09 0:14
a.hamidy31-Mar-09 0:14 
GeneralRe: create enum at run time Pin
musefan31-Mar-09 0:19
musefan31-Mar-09 0:19 
AnswerRe: create enum at run time Pin
Mustafa Ismail Mustafa30-Mar-09 23:37
Mustafa Ismail Mustafa30-Mar-09 23:37 
GeneralRe: create enum at run time Pin
a.hamidy31-Mar-09 0:16
a.hamidy31-Mar-09 0:16 
GeneralRe: create enum at run time Pin
Mustafa Ismail Mustafa31-Mar-09 0:50
Mustafa Ismail Mustafa31-Mar-09 0:50 
AnswerRe: create enum at run time Pin
PIEBALDconsult31-Mar-09 7:28
mvePIEBALDconsult31-Mar-09 7:28 
QuestionRe-painting a PictureBox? Pin
Megidolaon30-Mar-09 23:05
Megidolaon30-Mar-09 23:05 
AnswerRe: Re-painting a PictureBox? Pin
DaveyM6930-Mar-09 23:14
professionalDaveyM6930-Mar-09 23:14 
AnswerRe: Re-painting a PictureBox? Pin
musefan30-Mar-09 23:16
musefan30-Mar-09 23:16 
GeneralRe: Re-painting a PictureBox? Pin
Megidolaon1-Apr-09 21:13
Megidolaon1-Apr-09 21:13 
QuestionSave Paint Event of Custom Control Pin
yesu prakash30-Mar-09 23:03
yesu prakash30-Mar-09 23:03 
AnswerRe: Save Paint Event of Custom Control Pin
erfi30-Mar-09 23:27
erfi30-Mar-09 23:27 
AnswerRe: Save Paint Event of Custom Control Pin
benjymous30-Mar-09 23:35
benjymous30-Mar-09 23:35 
GeneralRe: Save Paint Event of Custom Control Pin
yesu prakash31-Mar-09 0:00
yesu prakash31-Mar-09 0:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.