is there any example around about how to use the static function
System.Windows.Interop.Imaging.CreateBitmapSourceFromHBitmap ?
I especially have a hard time with he first two parameters. How do I
convert from MFC CBitmap/CPalette to IntPtr.
is there any example around about how to use the static function
System.Windows.Interop.Imaging.CreateBitmapSourceFromHBitmap ?
I especially have a hard time with he first two parameters. How do I
convert from MFC CBitmap/CPalette to IntPtr.
Hi Bonk,
The first parameter is a pointer to an HBITMAP.
The second parameter is a pointer to an HPALETTE. Pass in null if it is not a palettized image.
I'm not familiar with MFC's CBitmap and CPalette. Is there a way to get an HBITMAP and HPALETTE from those?
Robert.
-----Original Message-----
From: bonk
Posted At: Thursday, January 05, 2006 2:46 AM
Posted To: microsoft.public.windows.developer.winfx.avalon
Conversation: Interop.Imaging.CReateBitmapSourceFromHBitmap example
Subject: Interop.Imaging.CReateBitmapSourceFromHBitmap example
is there any example around about how to use the static function
System.Windows.Interop.Imaging.CreateBitmapSourceFromHBitmap ?
I especially have a hard time with he first two parameters. How do I
convert from MFC CBitmap/CPalette to IntPtr.
| Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Interop | Ira Davis | .NET General | 1 | 29 Oct 2008 |
| Microsoft.VirtualServer.Interop.dll and the Microsoft.VMRCClientControl.Interop.dll | ASun | Virtual Server | 0 | 12 Aug 2008 |
| Using an interop assembly with interop dependencies | Jeff | PowerShell | 8 | 11 Oct 2007 |
| Microsoft Launches Icons of Imaging Program at First Microsoft Pro Photo Summit, Recognizing Present and Future Leaders in Photography and Digital Imaging | z3r010 | Vista News | 0 | 29 Jun 2006 |
| MFC interop: getting a CDC* rendered in WPF | bonk | Avalon | 0 | 10 Jan 2006 |