Results 1 to 4 of 4

Thread: Save Part of a Picture Box

  1. #1

    Thread Starter
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367

    Save Part of a Picture Box

    I was wondering if there is a way to save a part of a picturebox to a file.

    I may want to take coordinates like (50,30) to (100,400) and save it to a BMP file.

    Thanks in advance

  2. #2
    Member
    Join Date
    Mar 2001
    Location
    NYC
    Posts
    45
    I guess you could use PictureClip control to clip it and then save, or BitBlt the part you want to another picbox first. Pic clip is very easy to use, you can find sufficient examples in the manual. I don't have the code I used once, sorry.

  3. #3
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    BitBlt Picture2.hDC, 0, 0, 100 - 50, 400 - 30, Picture1.hDC, 50, 30, SRCCOPY

    Then save Picture 2's IMAGE property with the savepicture method.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  4. #4

    Thread Starter
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367
    Thanks,

    I actually figured it out a few days ago after no replies, but I used the exact same method.

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