Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Convert 32Bit Bitmap into 24Bit Bitmap HELP!!!!

Convert 32Bit Bitmap into 24Bit Bitmap HELP!!!!

Scheduled Pinned Locked Moved C / C++ / MFC
graphicshelpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    schaereran gmx net
    wrote on last edited by
    #1

    i dont find any article on this topic on the whole net, and the MSDN library! so i tryed it myself with GetBitmapBits, and SetBitmapBits. i copyed every BYTE from the 32bit bitmap into the 24bit bitmap, except every 4th. BYTE value, which is supposed to be the alpha value. so, now i should have a 24 bit bitmap, isnt it? but it does not work really.... pleas help me, is there no easy approach? thanx a lot andreas

    A 1 Reply Last reply
    0
    • S schaereran gmx net

      i dont find any article on this topic on the whole net, and the MSDN library! so i tryed it myself with GetBitmapBits, and SetBitmapBits. i copyed every BYTE from the 32bit bitmap into the 24bit bitmap, except every 4th. BYTE value, which is supposed to be the alpha value. so, now i should have a 24 bit bitmap, isnt it? but it does not work really.... pleas help me, is there no easy approach? thanx a lot andreas

      A Offline
      A Offline
      Alexander M
      wrote on last edited by
      #2

      first of all u have to modify the bitmap's header! I'm not sure about what byte is the alpha one, but i think it was the first one! Don't try it, just do it! ;-)

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups