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. how to put more than 256 color bitmap in dialog?

how to put more than 256 color bitmap in dialog?

Scheduled Pinned Locked Moved C / C++ / MFC
graphicstutorialquestionlearning
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.
  • H Offline
    H Offline
    houari_id
    wrote on last edited by
    #1

    Hi All, In the dialog box, I can put a bitmap by importing the bitmap in the Resource View. However, as far as I know (and tried), it is limited to 256 color bitmap only. Is it possible to put higher color space bitmap such as 24-bit for picture in the dialog box? Thank you

    -Houari

    M 1 Reply Last reply
    0
    • H houari_id

      Hi All, In the dialog box, I can put a bitmap by importing the bitmap in the Resource View. However, as far as I know (and tried), it is limited to 256 color bitmap only. Is it possible to put higher color space bitmap such as 24-bit for picture in the dialog box? Thank you

      -Houari

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      You must be using an older Visual Studio :) If I remember correctly, older versions didn't have an editor for bit-depths > 8 but you could still add them to a resource script (RC file). Mark

      Mark Salsbery Microsoft MVP - Visual C++ :java:

      H 1 Reply Last reply
      0
      • M Mark Salsbery

        You must be using an older Visual Studio :) If I remember correctly, older versions didn't have an editor for bit-depths > 8 but you could still add them to a resource script (RC file). Mark

        Mark Salsbery Microsoft MVP - Visual C++ :java:

        H Offline
        H Offline
        houari_id
        wrote on last edited by
        #3

        ah yes, i am using VS 6.0 ^^ and how can add them using resource script? thanks...

        -Houari

        M 1 Reply Last reply
        0
        • H houari_id

          ah yes, i am using VS 6.0 ^^ and how can add them using resource script? thanks...

          -Houari

          M Offline
          M Offline
          Mark Salsbery
          wrote on last edited by
          #4

          A typical BITMAP resource[^] in your app's .RC file looks something like IDB_BITMAP1 BITMAP "res\\bitmap1.bmp" where IDB_BITMAP1 is the identifier and the pathname of the bitmap file is in quotes. If you want VS to insert the code for you, you could add an 8-bit bitmap in the editor then replace the created BMP file with your 24-bit bitmap. Or edit the RC file by hand - it's a text file.

          Mark Salsbery Microsoft MVP - Visual C++ :java:

          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