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 disply pixel data on a dialog?

how to disply pixel data on a dialog?

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorialquestion
8 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.
  • A Offline
    A Offline
    ashokbngr
    wrote on last edited by
    #1

    I want to display pixel data in a static control on a dialog. can anybody....help me out in this:confused: Ashok

    N H 2 Replies Last reply
    0
    • A ashokbngr

      I want to display pixel data in a static control on a dialog. can anybody....help me out in this:confused: Ashok

      N Offline
      N Offline
      Nishad S
      wrote on last edited by
      #2

      what do you mean by pixel data? Is it simply an image? Can you convert it to HBITMAP? If so you can use SetBitmap API of CStatic.

      - NS -

      A 1 Reply Last reply
      0
      • A ashokbngr

        I want to display pixel data in a static control on a dialog. can anybody....help me out in this:confused: Ashok

        H Offline
        H Offline
        Hamid Taebi
        wrote on last edited by
        #3

        Im not sure do you need to SetPixelV?


        WhiteSky


        1 Reply Last reply
        0
        • N Nishad S

          what do you mean by pixel data? Is it simply an image? Can you convert it to HBITMAP? If so you can use SetBitmap API of CStatic.

          - NS -

          A Offline
          A Offline
          ashokbngr
          wrote on last edited by
          #4

          Yes..its an image data . I am receiving continously...I need to display as and when I revceive. thanks in advance Ashok

          N 1 Reply Last reply
          0
          • A ashokbngr

            Yes..its an image data . I am receiving continously...I need to display as and when I revceive. thanks in advance Ashok

            N Offline
            N Offline
            Nishad S
            wrote on last edited by
            #5

            If you can convert it to bitmap, then as I early mentioned, you can use SetBitmap. Another option is that customize the static control (deriving from CStatic) and put each pixel in to the DC in OnPaint(). SetPixelV API can be used for that.

            - NS -

            A 1 Reply Last reply
            0
            • N Nishad S

              If you can convert it to bitmap, then as I early mentioned, you can use SetBitmap. Another option is that customize the static control (deriving from CStatic) and put each pixel in to the DC in OnPaint(). SetPixelV API can be used for that.

              - NS -

              A Offline
              A Offline
              ashokbngr
              wrote on last edited by
              #6

              Thanks -NS-

              N J 2 Replies Last reply
              0
              • A ashokbngr

                Thanks -NS-

                N Offline
                N Offline
                Nishad S
                wrote on last edited by
                #7

                Welcome :)

                - NS -

                1 Reply Last reply
                0
                • A ashokbngr

                  Thanks -NS-

                  J Offline
                  J Offline
                  jk chan
                  wrote on last edited by
                  #8

                  Better to copy the pixel data to a array , and disaply as a bitmap . it is faster than SetPixel method.

                  If u can Dream... U can do it

                  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