![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | 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. |
| | #2 (permalink) |
| Guest | re: Interop.Imaging.CReateBitmapSourceFromHBitmap example 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. |
| |
| |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using an interop assembly with interop dependencies | Jeff | PowerShell | 8 | 10-11-2007 02:04 AM |
| Why can't I use Interop assembly instead of COM? | Joe.Zapert@gmail.com | PowerShell | 4 | 05-30-2007 02:07 PM |
| 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 | 06-29-2006 08:03 AM |
| MFC interop: getting a CDC* rendered in WPF | bonk | Avalon | 0 | 01-10-2006 03:53 PM |