Click here to Skip to main content
15,888,113 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I need help converting a 1bpp windows Bitmap to a DIB IntPtr, but using the following code produces a DDB.

VB
Dim bm As New Bitmap("C:\test.jpg")
  Dim hBitmap As System.IntPtr = bm.GetHbitmap
 ImgMod(hBitmap, 27) ' Third party Function looking for a IntPtr to a DIB 


Currently the ImgMod function is complaining that the handle is a DDB instead of a DIB.

Any Ideas?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900