|
-
July 9th, 2010, 06:45 AM
#1
[RESOLVED] VBA: copy part of image
Hi,
For some more automatisation of some tasks at work I'm currently working on some code that should do the following:
I take a print screen of the active window and paste it in an image control "Image1" (not a picture control since these aren't available in VBA)? With a mouse_down, _move and _up event I can draw a 2nd image control (Image2) over the first one like a selection rectangle.
All this part is working. Now comes the part that I can't figure it out. When I push a command button "Cut" it should copy the part of Image1 where I drew the 2nd image over. Something like the "snipping tool" of windows vista.
I searched the web and already tried for some days to get it to work, but without succes.
I have read about paintpicture and what I can understand of it is that with paintpicture it should work and my issue should be solved. Unfortunately this isn't available with the Image control.
Can you help me?
note: My knowledge of vb and VBA is basic to moderate.
Thanks in advance..
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
|