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. Read Image's RGB co-ordinates

Read Image's RGB co-ordinates

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
7 Posts 4 Posters 3 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.
  • G Offline
    G Offline
    Game point
    wrote on last edited by
    #1

    Hi All How to read Image's RGB value (only block and white) kindly give me your solution Regards

    ~Raju~

    CPalliniC 1 Reply Last reply
    0
    • G Game point

      Hi All How to read Image's RGB value (only block and white) kindly give me your solution Regards

      ~Raju~

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

      You may use CBitmap::GetBitmapBits [^]. :)

      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
      [My articles]

      In testa che avete, signor di Ceprano?

      G 1 Reply Last reply
      0
      • CPalliniC CPallini

        You may use CBitmap::GetBitmapBits [^]. :)

        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
        [My articles]

        G Offline
        G Offline
        Game point
        wrote on last edited by
        #3

        hi Pal thanks for replay .. it can possible load jpeg images and it can possible to render the images w.r.t RGB regards

        ~Raju~

        S CPalliniC N 3 Replies Last reply
        0
        • G Game point

          hi Pal thanks for replay .. it can possible load jpeg images and it can possible to render the images w.r.t RGB regards

          ~Raju~

          S Offline
          S Offline
          Selvam R
          wrote on last edited by
          #4

          http://msdn.microsoft.com/en-us/magazine/cc301454.aspx[^]

          Thanks and Regards, Selvam, http://www.wincpp.com

          1 Reply Last reply
          0
          • G Game point

            hi Pal thanks for replay .. it can possible load jpeg images and it can possible to render the images w.r.t RGB regards

            ~Raju~

            CPalliniC Offline
            CPalliniC Offline
            CPallini
            wrote on last edited by
            #5

            rajugis wrote:

            it can possible load jpeg images

            You may use CImage class for the purpose, see CImage::Load [^] and, for instance, CImage::GetPixel [^]. :)

            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
            [My articles]

            In testa che avete, signor di Ceprano?

            1 Reply Last reply
            0
            • G Game point

              hi Pal thanks for replay .. it can possible load jpeg images and it can possible to render the images w.r.t RGB regards

              ~Raju~

              N Offline
              N Offline
              Nuri Ismail
              wrote on last edited by
              #6

              Just in addition to CPallini's post. If you decide to use CImage class you will notice that the GetPixel and SetPixel methods are slow. So if you need a fast pixel access you can use this[^] class with combination of CImage class. Using CxImage[^] library could also be an option. :) Regards Nuri Ismail

              CPalliniC 1 Reply Last reply
              0
              • N Nuri Ismail

                Just in addition to CPallini's post. If you decide to use CImage class you will notice that the GetPixel and SetPixel methods are slow. So if you need a fast pixel access you can use this[^] class with combination of CImage class. Using CxImage[^] library could also be an option. :) Regards Nuri Ismail

                CPalliniC Offline
                CPalliniC Offline
                CPallini
                wrote on last edited by
                #7

                Nuri Ismail wrote:

                Just in addition to CPallini's post. If you decide to use CImage class you will notice that the GetPixel and SetPixel methods are slow.

                :thumbsup: That was the reason of 'for instance'. :-D

                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
                [My articles]

                In testa che avete, signor di Ceprano?

                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