Convert bitmap color depth

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • botched

    Convert bitmap color depth

    How can I convert a bitmap's color depth from 32bits to 16bits?


  • Mark Salsbery [MVP]

    #2
    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?
    What pixel formats? RGB? Grayscale? Palette indexes?

    Mark

    --
    Mark Salsbery
    Microsoft MVP - Visual C++
    >
    >

    Comment

    • Michael Phillips, Jr.

      #3
      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

        #4
        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

        Working...