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

Bitmap

Scheduled Pinned Locked Moved C / C++ / MFC
c++graphicshelpquestion
7 Posts 4 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
    srija
    wrote on last edited by
    #1

    Hello all, Am newly working with bitmap, i do have many questions regarding this. At present am working on Visual C++, but am devolping code in C without any dialog based(No GUI), just with CLASS view and FILE view, am almost finished with the work, but the problem, now i have to open a bitmap to plot the output data on the bitmap. Is it possible to create a Bitmap in C or should i use VC++ dialog based application only? Is there any special function?

    W C M 3 Replies Last reply
    0
    • S srija

      Hello all, Am newly working with bitmap, i do have many questions regarding this. At present am working on Visual C++, but am devolping code in C without any dialog based(No GUI), just with CLASS view and FILE view, am almost finished with the work, but the problem, now i have to open a bitmap to plot the output data on the bitmap. Is it possible to create a Bitmap in C or should i use VC++ dialog based application only? Is there any special function?

      W Offline
      W Offline
      Waldermort
      wrote on last edited by
      #2

      Its possible to open a bitmap the same as any other "text" file. You can also use the CreateBitmap() LoadBitmap() ... functions, but I think these require that you include windows.h or at least GDI.h into your project. I'm not sure exactly what you are rying to do, but if you do some research about DI (Device Independant) Bitmaps, these allow you to manipulate each pixel in the structure.

      S 1 Reply Last reply
      0
      • S srija

        Hello all, Am newly working with bitmap, i do have many questions regarding this. At present am working on Visual C++, but am devolping code in C without any dialog based(No GUI), just with CLASS view and FILE view, am almost finished with the work, but the problem, now i have to open a bitmap to plot the output data on the bitmap. Is it possible to create a Bitmap in C or should i use VC++ dialog based application only? Is there any special function?

        C Offline
        C Offline
        chaitanya22
        wrote on last edited by
        #3

        Are u working on WIN32 console application?

        S 1 Reply Last reply
        0
        • S srija

          Hello all, Am newly working with bitmap, i do have many questions regarding this. At present am working on Visual C++, but am devolping code in C without any dialog based(No GUI), just with CLASS view and FILE view, am almost finished with the work, but the problem, now i have to open a bitmap to plot the output data on the bitmap. Is it possible to create a Bitmap in C or should i use VC++ dialog based application only? Is there any special function?

          M Offline
          M Offline
          Maximilien
          wrote on last edited by
          #4

          srija wrote:

          Is it possible to create a Bitmap in C or should i use VC++ dialog based application only? Is there any special function?

          Yes, you can create a bitmap in Plain Old C. Have a look at all the bitmap structures in MSDN. But what are you wanting to do with the bitmap you created ?if your program only read data and create the bitmap manually, and save it back to a file, you can use paint.exe ( or any other bitmap/image viewer ) to see the resulting image.


          Maximilien Lincourt Your Head A Splode - Strong Bad

          S 1 Reply Last reply
          0
          • C chaitanya22

            Are u working on WIN32 console application?

            S Offline
            S Offline
            srija
            wrote on last edited by
            #5

            ya, this is win32 console application.

            1 Reply Last reply
            0
            • W Waldermort

              Its possible to open a bitmap the same as any other "text" file. You can also use the CreateBitmap() LoadBitmap() ... functions, but I think these require that you include windows.h or at least GDI.h into your project. I'm not sure exactly what you are rying to do, but if you do some research about DI (Device Independant) Bitmaps, these allow you to manipulate each pixel in the structure.

              S Offline
              S Offline
              srija
              wrote on last edited by
              #6

              hello, #include "windows.h" #include "windgi.h" #include "GDI.h" CreateBitmap(100,100,256,16,const void*lpvbit); am getting an error as "cannot open GDI.h" what could be the reason?

              1 Reply Last reply
              0
              • M Maximilien

                srija wrote:

                Is it possible to create a Bitmap in C or should i use VC++ dialog based application only? Is there any special function?

                Yes, you can create a bitmap in Plain Old C. Have a look at all the bitmap structures in MSDN. But what are you wanting to do with the bitmap you created ?if your program only read data and create the bitmap manually, and save it back to a file, you can use paint.exe ( or any other bitmap/image viewer ) to see the resulting image.


                Maximilien Lincourt Your Head A Splode - Strong Bad

                S Offline
                S Offline
                srija
                wrote on last edited by
                #7

                am having bitmap DLL, but it is based on MFC? how could i use for Visual C?

                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