Main Page | Report this Page
Computers Forum Index  »  Computer - Graphics  »  how to display image from memory Device Context (CDC) to bro
Page 1 of 1    

how to display image from memory Device Context (CDC) to bro

Author Message
metira
Posted: Wed Jul 14, 2004 12:56 am
Guest
I have an image in memory Device Context and want to display in the
browser window. Any Help?

hImage ----- handle to image in memory

HDC hDC = GetDC(hWnd); //hWnd is the browser handle
HDC hImageDC = CreateCompatibleDC(hDC);
SelectObject(hImageDC,hImage) //copy image to hImageDC

BitBlt(hDC,100,100,,96,96,hImageDC,0,0,SRCCOPY);

it doesn't work will anyone please post me the correct solution

thanks

j
 
 
Page 1 of 1    
All times are GMT
The time now is Fri Mar 19, 2010 8:01 am