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. Generate Bitmap

Generate Bitmap

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++graphicstutorial
3 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.
  • A Offline
    A Offline
    azusakt
    wrote on last edited by
    #1

    Hi, this maybe a stupid question. But I'm new to C++ I would like to create a bitmap, and put data from by myself i.e. I have to process a set of pixel data from data buffer, after the calculation, I would like to save the data into a Bitmap. maybe line by line, maybe append from a loop. Can anyone provide me an example for saving and creating bitmap? many Thanks..

    C 1 Reply Last reply
    0
    • A azusakt

      Hi, this maybe a stupid question. But I'm new to C++ I would like to create a bitmap, and put data from by myself i.e. I have to process a set of pixel data from data buffer, after the calculation, I would like to save the data into a Bitmap. maybe line by line, maybe append from a loop. Can anyone provide me an example for saving and creating bitmap? many Thanks..

      C Offline
      C Offline
      CPallini
      wrote on last edited by
      #2

      You may find CImage http://msdn2.microsoft.com/en-us/library/bwea7by5(VS.80).aspx[^] useful to accomplish the task. Alterantively, have a llok at GDI+ Image class http://msdn2.microsoft.com/en-us/library/ms534462(VS.85).aspx[^]. :)

      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
      [my articles]

      A 1 Reply Last reply
      0
      • C CPallini

        You may find CImage http://msdn2.microsoft.com/en-us/library/bwea7by5(VS.80).aspx[^] useful to accomplish the task. Alterantively, have a llok at GDI+ Image class http://msdn2.microsoft.com/en-us/library/ms534462(VS.85).aspx[^]. :)

        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
        [my articles]

        A Offline
        A Offline
        azusakt
        wrote on last edited by
        #3

        Would you mind provide me a sample code for creating a bitmap. I've read some doc, it needs to create Bitmap header as well... actually, the raw data (image from char* ) must eventually save into Png file, so I want to save it to Bitmap first, and then convert to png.

        modified on Monday, February 04, 2008 9:01:59 PM

        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