how to draw tranparent rectangle on picture box?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • 55555
    New Member
    • Dec 2009
    • 9

    how to draw tranparent rectangle on picture box?

    i am making application for image cropping.
    where in this application i want to draw transparent rectangle on picture box.
    eg> you must have uploaded photo on orkut , when u upload the photo if photo is too big croping windows comes up and tranparent rectangle with resizable appears on image.

    similarly i want resizable rectangle on my picturebox where user can resize the rectangle and then user press crop button it crops off that much part.

    my question
    1) how to draw transparent rectangle on picturebox
    2) how to resize it.

    application is in vb.net
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Is this an ASP.NET application or a windows-desktop application?

    Comment

    • 55555
      New Member
      • Dec 2009
      • 9

      #3
      window based application in vb.net

      Comment

      • Frinavale
        Recognized Expert Expert
        • Oct 2006
        • 9749

        #4
        You need to use the Graphics class to do the cropping (see the Graphics Methods for more details on the methods available to you for this task)

        Once you have done your image manipulation save it into the database....

        Comment

        Working...