|
-
May 24th, 2001, 03:54 PM
#1
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
-
May 26th, 2001, 09:56 PM
#2
Member
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.
-
May 27th, 2001, 10:42 AM
#3
Good Ol' Platypus
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)
-
May 27th, 2001, 03:33 PM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|