|
-
Jan 16th, 2003, 06:11 AM
#1
Thread Starter
Junior Member
Cutting Image
I have a picturebox filled with an image
now i want to cut a part out of the image to save it.
How can i cut, say the middle part from 100x100 out off the image.......
-
Jan 16th, 2003, 09:30 AM
#2
Member
bitblt the selected area to an invisible picbox with autoredraw set to true. resize the invisible pbox and then use following
Code:
sub savepic()
pinvisible.visible=false
pinvisible.autoredraw=true
bitblt pbox.hdc,startx,starty,100,100,pinvisible.hdc,vbsrccopy
pinvisible.move pinvisible.left,pinvisible.top,100,100
pinvisible.picture=pinvisible.image
savepicture pinvisible.picture,"c:\1.bmp"
end sub
 ppl saw this
Die, ***** Die !
-
Jan 16th, 2003, 09:34 AM
#3
Thread Starter
Junior Member
oops
sorry, i found the pictureclip ocx works fine too
thx for helping
-
Jan 16th, 2003, 12:28 PM
#4
Hyperactive Member
Just found it too! 3 Questions:
1. Does this work on all Platforms '98','2000','xp','nt'?
2. How do I use it (got an example?)
3. Can it do irregular cuts too?
Thanks in advance
-
Jan 16th, 2003, 01:54 PM
#5
If you have MSDN you can search for it there. They have a tutorial on it. And and source code.....
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
|