How can I convert a bitmap's color depth from 32bits to 16bits?
Convert bitmap color depth
Collapse
This topic is closed.
X
X
-
botchedTags: None
-
Mark Salsbery [MVP]
Re: Convert bitmap color depth
"botched" <botched@home.n owwrote in message
news:eeT3sd28IH A.1180@TK2MSFTN GP03.phx.gbl...How can I convert a bitmap's color depth from 32bits to 16bits?
Mark
--
Mark Salsbery
Microsoft MVP - Visual C++
>
> -
Michael Phillips, Jr.
Re: Convert bitmap color depth
How can I convert a bitmap's color depth from 32bits to 16bits?
If you do not wish to convert to 16bpp grayscale, then create an empty 16bpp
DIB with CreateDIBSectio n and use BitBlt to do the color conversion.
If you do wish to convert to 16bpp grayscale, then use Microsoft's Windows
Imaging Component API as there is no support for 16bpp grayscale with
Microsoft's gdiplus or GDI API's.
Comment
-
botched
Re: Convert bitmap color depth
Thanks!
"Michael Phillips, Jr." <mphillips53@no spam.jun0.c0mwr ote in message
news:eQErqK98IH A.3848@TK2MSFTN GP04.phx.gbl...>How can I convert a bitmap's color depth from 32bits to 16bits?
If you do not wish to convert to 16bpp grayscale, then create an empty
16bpp DIB with CreateDIBSectio n and use BitBlt to do the color conversion.
>
If you do wish to convert to 16bpp grayscale, then use Microsoft's Windows
Imaging Component API as there is no support for 16bpp grayscale with
Microsoft's gdiplus or GDI API's.
>
Comment
Comment