Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A Portion Captured

Status
Not open for further replies.

MrVB50au

Programmer
Mar 16, 2003
326
AU

I know that there are screen captures on here but I couldn't find a portion capturing routine. If there is one on this forum could someone please direct me to it?

Other than that, here's what I'm trying to achieve:

1)Using a given coordinates to paste to the clipboard.

2)Save it as a bmp file at a specific location.

3)Getting bmp and use it as background eg: into a button).


If there's something simular to this that already exist please accept my sincere apologies, I did a search and couldn't find it.

Andrew G.
 
Goto thread222-516967.

All your questions are answered there.
To send the bitmap to the clipboard, do this:

Clipboard.Clear
Clipboard.SetData PictureObject
 
Thanks a million guys this I think I can manipulate to do just what I want. It's doesn't really matter that I can't save the bmp file as when the form gets loaded I simply set coordinates to copy and paste each section on the form where the buttons reside and paste them into the buttons themselves. Also, Before pasting them into a button I will try and use the the 'Alphablending.dll' routines I have to manipulate the graphics before hand using a picture box and then copying that to place into the buttons.

Do you think I'm double handling by doing it this way? or do you think that this would be fine?

Thanks again for your valuable help.

Andrew G.
 
strongm
Yes! What it is, is this:
Lets say that you have a beautiful background but now the ugly default command buttons look out of place, you simply capture a portion of the form (where the button(s) reside) then paste them into a picturebox, lighten it using alphablending and capture that, then insert that into a button (whose property has been set to use graphical).

What do you think? Is this the right way to go about it?

Thanks again,

Andrew G.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top