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. Bitmaps And Palettes

Bitmaps And Palettes

Scheduled Pinned Locked Moved C / C++ / MFC
graphicsquestion
4 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.
  • M Offline
    M Offline
    Mark Swann
    wrote on last edited by
    #1

    How could one create a static bitmap control that is palette savvy? My controls look great at 16 and 24 bits but but in 8 bit mode they look disappointing. Thanks

    C 1 Reply Last reply
    0
    • M Mark Swann

      How could one create a static bitmap control that is palette savvy? My controls look great at 16 and 24 bits but but in 8 bit mode they look disappointing. Thanks

      C Offline
      C Offline
      Chris Maunder
      wrote on last edited by
      #2

      I'm actually just about to combine my DIBSection class with my custom image viewer demonstration in order to create a decent picture control with scroll bars, palette support etc. Interested?

      M 1 Reply Last reply
      0
      • C Chris Maunder

        I'm actually just about to combine my DIBSection class with my custom image viewer demonstration in order to create a decent picture control with scroll bars, palette support etc. Interested?

        M Offline
        M Offline
        Mark Swann
        wrote on last edited by
        #3

        Sounds like fun to me. I've done plenty of bit blitting but I must profess an ignorance of DIB sections. How do they differ from Windows bitmaps?

        C 1 Reply Last reply
        0
        • M Mark Swann

          Sounds like fun to me. I've done plenty of bit blitting but I must profess an ignorance of DIB sections. How do they differ from Windows bitmaps?

          C Offline
          C Offline
          Chris Maunder
          wrote on last edited by
          #4

          DIBSections are similar to bitmaps in that you have a handle that you can work with (an HBITMAP in fact), but they are device independant. They offer the best of both worlds: device independance and ease of use. They are also extremely useful when working in CE, since CE doesn't support many of the DIB functions - but does support DIBSections.

          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