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