Groups | Blog | Home
all groups > dotnet drawing api > february 2004 >

dotnet drawing api : Bitmap.FromHBitmap



Ken Tucker [MVP]
2/26/2004 11:17:48 AM
Hi,

I am trying to recieve an image from a digital camera. I get =
back a pointer to the image. When ever I try to use bitmap.fromhbitmap =
I get an generic gdi+ error. =20

n!
2/26/2004 7:39:23 PM
[quoted text, click to view]

I would guess that the pointer you receive isn't a bitmap handle, but a raw
pointer? You'll need to copy your raw image into the bitmap yourself,
FromHbitmap requires a bitmap handle rather than a raw pointer.

n!

AddThis Social Bookmark Button