Rotating a rectangle using c# RRS feed

  • Question

  • User2036759390 posted

     Hi friends,

    Can some body suggest me how to rotate a rectangle?

    Friday, January 29, 2010 6:35 AM


All replies

  • User-510227478 posted

    This might help

    Image Rotation

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, January 29, 2010 9:23 AM
  • User2036759390 posted

    Thanks for the reply

    I have tried with the sample what you have given in the code project link.

    But, in the Image rotation sample, points are calculated based on the image height and width(where graphics.DrawImage method takes array of points i.e., point[] which DrawRectangle doesn't take the point[] array).

    Based on the image rotation sample given in the codeproject, how to calculate points to a rectangle.Help on how to calculate the rotation points for a rectangle.




    Sunday, January 31, 2010 11:58 PM