Has anyone been able to save a clipboard file to a image file?
Like a *.bmp, *.jpg. I am using visual basic 6 with Leadtools eval multimedia kit.
Thanks
20-07-2004 at 09:11 PM
|
Goran Level: Moderator Registered: 16-05-2002 Posts: 1681
Re: Clipboard to Image file
You mean something like this:
' Setting some image file to clipboard
Clipboard.SetData LoadPicture("C:\T-Shirt.bmp")
' Saving picture from clipboard in bmp format
SavePicture Clipboard.GetData, "C:\SavedPic.bmp"
____________________________
If you find the answer helpful, please mark this topic as solved.
20-07-2004 at 10:27 PM
|
Philip201 Level: Guest
Re: Clipboard to Image file
Yes, Thank you I will try the codethis morning. I went to Microsoft help files. There code is a little bit longer. The code from Lead Tools was extremly long.
Thank You Very much. I will try the code in 15 minutes.
Philip
21-07-2004 at 01:33 PM
|
Goran Level: Moderator Registered: 16-05-2002 Posts: 1681
Re: Clipboard to Image file
Well, if you want to use some proffesional routines for saving a file (to a jpg format, for instance), then the code will be much longer. This is as simplest as it can be done, and it only saves in bmp format.
____________________________
If you find the answer helpful, please mark this topic as solved.
21-07-2004 at 05:28 PM
|
Philip201 Level: Guest
Re: Clipboard to Image file
Your code is perfect. I do have some code from Microsoft to save the file in different formats. However the code you supplied is simple and sweet. It is a pefect way to get the job done. If I do need to save the file in different formats I will change the code. But for now your code is GREAT.