mwallett

mwallett

  • NA
  • 7
  • 0

Need help with resizing at an angle

Mar 16 2005 6:06 PM
Hi guys I could really do with some help from a GDI+ expert. I am coding a little app that can draw shapes on the screen. The user can move, resize, and rotate. I have got most of this working pretty good and the project is coming on very well but I am very new to GDI+. The problem I have is letting the user rotate a shape and then resize. I have got selecting and rotating working fine but resizing the shape at an angle is proving very tricky for me. I am able to resize at 0 degrees perfectly with my simple code. If the shape is at an angle then I start getting funny results. One method I have seen is to draw an outer bounds rectangle around the shape with handles. When the outer bound rectangle is stretched the shape is resized to fit. I am really looking for some help and guidance on how I can rotate and resize. Thanks for any help if you can. This is the last major missing piece in the puzzle for me. Mike

Answers (2)