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.......
Printable View
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.......
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
sorry, i found the pictureclip ocx works fine too
thx for helping
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
If you have MSDN you can search for it there. They have a tutorial on it. And and source code.....;)