Atalasoft
Welcome to Atalasoft Community Sign in | Join | Help

How Can I Load a 1-bit bitmap into an Image and avoid promoting it to 24-bit?

  •  08 Jun 2007, 1:51 PM

    How Can I Load a 1-bit bitmap into an Image and avoid promoting it to 24-bit?

    Hi,

    If I create a 1-bit bitmap and load it into a device context returned by GetDC(), the resulting image produced by Import.FromDeviceContext() is a 24-bit image.  This is very slow and unecessary in my case since the image is only black and white to begin with.

     Is there some other way I can create a 1-bit image image from a 1-bit bitmap without having to do some sort of conversion after the fact.


    Thanks

    ...Joe
View Complete Thread