Groups | Blog | Home
all groups > dotnet drawing api > september 2006 >

dotnet drawing api : Load bitmap from DLL


Steve Whine
9/21/2006 4:10:03 PM
Hello,

I need to load a bitmap from the Shell32.dll into a System.Drawing
Bitmap object, but I can find no way to do this. I have got a HBITMAP by
using the P/Invoked LoadBitmap() function but there seems to be no way
to get this into a System.Drawing Bitmap. What is the best way to do this?

Regards
Chris Taylor
9/24/2006 5:44:03 PM
Hi,

Take a look at Image.FromHbitmap.

Hope this helps

--
Chris Taylor
http://dotnetjunkies.com/weblog/chris.taylor

[quoted text, click to view]

AddThis Social Bookmark Button