Results 1 to 2 of 2

Thread: save a picture from a picturebox

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Posts
    2
    Hi !

    I've loaded a bmp picture into a picturebox. How can I save a part of it (a rectangle) back to
    disk (as a bmp picture) ? I want to use this for automatical image processing.

    Rebecca

  2. #2
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Picture1 has image processed pic stored
    Picture2 has nothing inside

    variables:
    Rcct = RECT position

    Bitblt Picture2.hdc, rcct.left,rcct.top,rcct.right-rcct.left,rcct.bottom - rcct.top, picture1.hdc,0,0,srccopy

    I hope you know how to use bitblt, if not, head on over to my tutorial:

    http://vbden.tripod.com/articles/invmask.htm
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width