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. Drawing with pixel coordinates

Drawing with pixel coordinates

Scheduled Pinned Locked Moved C / C++ / MFC
c++questiongraphics
5 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.
  • E Offline
    E Offline
    emrahustun
    wrote on last edited by
    #1

    Hello friends. I have comma seperated x and y coordinates. I need to draw these. Do you have advices? How can i do this? I've heard Visual C++ has a OnDraw() function. Or can I use OpenCV? Or something else? Thank you all.

    C P I 3 Replies Last reply
    0
    • E emrahustun

      Hello friends. I have comma seperated x and y coordinates. I need to draw these. Do you have advices? How can i do this? I've heard Visual C++ has a OnDraw() function. Or can I use OpenCV? Or something else? Thank you all.

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      You mean you need to have some kind of graph ? If that's the case, take a look at my sig, I developped a chart control that could be usefull for you. If not, there a section on code project with different charting controls.

      Cédric Moonen Software developer
      Charting control [v1.5] OpenGL game tutorial in C++

      1 Reply Last reply
      0
      • E emrahustun

        Hello friends. I have comma seperated x and y coordinates. I need to draw these. Do you have advices? How can i do this? I've heard Visual C++ has a OnDraw() function. Or can I use OpenCV? Or something else? Thank you all.

        P Offline
        P Offline
        pallaka
        wrote on last edited by
        #3

        You can use Mapping Modes for the window.

        1 Reply Last reply
        0
        • E emrahustun

          Hello friends. I have comma seperated x and y coordinates. I need to draw these. Do you have advices? How can i do this? I've heard Visual C++ has a OnDraw() function. Or can I use OpenCV? Or something else? Thank you all.

          I Offline
          I Offline
          Iain Clarke Warrior Programmer
          wrote on last edited by
          #4

          As your question is very basic, I'm assuming your windows programming knowledge is minimal? Nothing wrong with that - we all started there. But if so, you are probably biting off a little bit too much. You are asking two non-trivial questions - how do I read in a file of comma separated values, and how do I plot them? Is there any reason why you can't use excel for plotting these values? If you really do have to write your own software, I'd follow the other suggestion and look at the charting controls here. Iain.

          E 1 Reply Last reply
          0
          • I Iain Clarke Warrior Programmer

            As your question is very basic, I'm assuming your windows programming knowledge is minimal? Nothing wrong with that - we all started there. But if so, you are probably biting off a little bit too much. You are asking two non-trivial questions - how do I read in a file of comma separated values, and how do I plot them? Is there any reason why you can't use excel for plotting these values? If you really do have to write your own software, I'd follow the other suggestion and look at the charting controls here. Iain.

            E Offline
            E Offline
            emrahustun
            wrote on last edited by
            #5

            Yes, I just started to GUI programing. We have an image processing project, so these values are not excel values. Dynamically changing values created with other functions. I am now thinking, I can create a BMP and show it in a picturebox. It'll be a easy way for me. (Because I'm experienced in image processing.) I'll be asking more questions about these. :) Thanks a lot.

            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