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 can i copy raw image buffer to a dc?

How can i copy raw image buffer to a dc?

Scheduled Pinned Locked Moved C / C++ / MFC
questiongraphicshelp
10 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
    Soumyadipta
    wrote on last edited by
    #1

    I am able to display a bitmap using bltblit() function. Now i have a raw image buffer. I want to display this data to my window using the device context. I have the current HDC. should i have to create a bitmap from this raw buffer. Please help me.

    C 1 Reply Last reply
    0
    • S Soumyadipta

      I am able to display a bitmap using bltblit() function. Now i have a raw image buffer. I want to display this data to my window using the device context. I have the current HDC. should i have to create a bitmap from this raw buffer. Please help me.

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

      I guess it depends on the raw image buffer format. :)

      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.
      This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

      S 1 Reply Last reply
      0
      • C CPallini

        I guess it depends on the raw image buffer format. :)

        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.
        This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

        S Offline
        S Offline
        Soumyadipta
        wrote on last edited by
        #3

        What is the solution for this problem?

        C 1 Reply Last reply
        0
        • S Soumyadipta

          What is the solution for this problem?

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

          As I've already pointed out, knowledge of the raw image data format maybe a good start. :)

          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.
          This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

          S 1 Reply Last reply
          0
          • C CPallini

            As I've already pointed out, knowledge of the raw image data format maybe a good start. :)

            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.
            This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

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

            I am not getting your point.I have a 800 x 600 x 4 RGBA raw image buffer. I want to display this on current HDC. My question is should i have to create a bitmap for this buffer and then should i use bltblit () function. Curently i am able to display a bitmap on current HDC. Please elaborate your idea in little details. Thanks, Soumyadipta De

            C 1 Reply Last reply
            0
            • S Soumyadipta

              I am not getting your point.I have a 800 x 600 x 4 RGBA raw image buffer. I want to display this on current HDC. My question is should i have to create a bitmap for this buffer and then should i use bltblit () function. Curently i am able to display a bitmap on current HDC. Please elaborate your idea in little details. Thanks, Soumyadipta De

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

              Soumyadipta wrote:

              My question is should i have to create a bitmap for this buffer and then should i use bltblit () function.

              Yes. :)

              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.
              This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

              S 1 Reply Last reply
              0
              • C CPallini

                Soumyadipta wrote:

                My question is should i have to create a bitmap for this buffer and then should i use bltblit () function.

                Yes. :)

                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.
                This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

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

                Is there is any other alternative other than creating a bitmap? Thanks, Soumyadipta De

                C 1 Reply Last reply
                0
                • S Soumyadipta

                  Is there is any other alternative other than creating a bitmap? Thanks, Soumyadipta De

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

                  IMHO nope. But there are a lot of tutorials about. Have a look at GDI articles here at CP. :)

                  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.
                  This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

                  S 1 Reply Last reply
                  0
                  • C CPallini

                    IMHO nope. But there are a lot of tutorials about. Have a look at GDI articles here at CP. :)

                    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.
                    This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

                    S Offline
                    S Offline
                    Soumyadipta
                    wrote on last edited by
                    #9

                    Thanks for you help.But i am not understanding one thing that, if it's not possible to do this in any other way then what you are suggesting to find me in the GDI tutorials? Thanks, Soumyadipta De

                    C 1 Reply Last reply
                    0
                    • S Soumyadipta

                      Thanks for you help.But i am not understanding one thing that, if it's not possible to do this in any other way then what you are suggesting to find me in the GDI tutorials? Thanks, Soumyadipta De

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

                      How to build a bitmap. :)

                      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.
                      This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

                      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