Home/ASP.NET Forums/Advanced ASP.NET/System.Drawing/GDI+/help with coding / image aspect ratio

help with coding / image aspect ratio [Answered]RSS

2 replies

Last post Nov 10, 2010 07:42 PM by Tdar

  • Tdar

    Tdar

    Member

    44 Points

    175 Posts

    Re: help with coding / image aspect ratio

    Nov 10, 2010 07:42 PM|Tdar|LINK

    oh

    this code is not needed for that. but still not sure how to do the math tol reduce with aspect kept

        var imageRectangle = new Rectangle(0, 0, newWidth, newHeight);   

  •     thumbnailGraph.DrawImage(image, imageRectangle);   
  •   
  •     thumbnailGraph.DrawImage(image, imageRectangle);   

     

     and this is what i was looking for

    http://snippets.dzone.com/posts/show/4336

     

  • ‹ Previous Thread|Next Thread ›