borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Rename the Start Button)Next Topic (command button messages) New Topic New Poll Post Reply
AndreaVB Forum : API : Clipboard to Image file
Poster Message
Philip201
Level: Guest


icon Clipboard to Image file

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
| Quote Reply
Goran
Level: Moderator

Registered: 16-05-2002
Posts: 1681
icon 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
View Profile Send Email to User Show All Posts | Quote Reply
Philip201
Level: Guest

icon 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
| Quote Reply
Goran
Level: Moderator

Registered: 16-05-2002
Posts: 1681
icon 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
View Profile Send Email to User Show All Posts | Quote Reply
Philip201
Level: Guest

icon 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.

Thank You

Philip     

21-07-2004 at 05:32 PM
| Quote Reply
AndreaVB Forum : API : Clipboard to Image file
Previous Topic (Rename the Start Button)Next Topic (command button messages) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder