![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
| |
| | #1 (permalink) |
| | 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. |
My System Specs![]() |
| | #2 (permalink) |
| | 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. |
My System Specs![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Interop | .NET General | |||
| Microsoft.VirtualServer.Interop.dll and the Microsoft.VMRCClientControl.Interop.dll | Virtual Server | |||
| Using an interop assembly with interop dependencies | PowerShell | |||
| Microsoft Launches Icons of Imaging Program at First Microsoft Pro Photo Summit, Recognizing Present and Future Leaders in Photography and Digital Imaging | Vista News | |||