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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Clipboard manipulation of graphic data.

Status
Not open for further replies.

zikar

Programmer
Oct 10, 2000
31
0
0
JP
Hello,

I need a hand for clipboard manipulation of graphic data, on VC++ MFC.

Can anybody help me on this ?

I have graphic data in the clipboard (in ENHMETAFILE format).

I can get it using the following line of code :
HENHMETAFILE handle = (HENHMETAFILE)GetClipboardData(CF_ENHMETAFILE);

Then I can display it. I am therefore sure that I get it.

How can I save this data as a .bmp file or even better as a .jpg file ?

I looked on the internet for code samples using CBitmap, but some pieces are still missing.
I am not a "graphic programmer", but this has to be possible in a way or another.

Thanks for any help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top