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. Hi,all, I want to paint a bias and never use LineTo(),Because I want get every point's coordinate in the bias.How can i do?

Hi,all, I want to paint a bias and never use LineTo(),Because I want get every point's coordinate in the bias.How can i do?

Scheduled Pinned Locked Moved C / C++ / MFC
question
4 Posts 3 Posters 5 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Hi,all, I want to paint a bias and never use LineTo(),Because I want get every point's coordinate in the bias.How can i do? Thanks! BR jzhlily

    M J 2 Replies Last reply
    0
    • L Lost User

      Hi,all, I want to paint a bias and never use LineTo(),Because I want get every point's coordinate in the bias.How can i do? Thanks! BR jzhlily

      M Offline
      M Offline
      mhamsa
      wrote on last edited by
      #2

      Have you looked at Polyline()? It takes an array on points (coordinates) and draw them all at once. mike...

      L 1 Reply Last reply
      0
      • M mhamsa

        Have you looked at Polyline()? It takes an array on points (coordinates) and draw them all at once. mike...

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        i want get every point's corrdinates in the line. such as that I have two point:point1(x1,y1) and point2(x2,y2),I want get every points(coordinates) in the line(from point1 to point2). jzhlily

        1 Reply Last reply
        0
        • L Lost User

          Hi,all, I want to paint a bias and never use LineTo(),Because I want get every point's coordinate in the bias.How can i do? Thanks! BR jzhlily

          J Offline
          J Offline
          jbarton
          wrote on last edited by
          #4

          I'm not sure if this is what you want, but you may want to look at the LineDDA function. It passes all the coordinates needed to draw a specified line to a user defined callback function (it calls the callback function for each pixel in the line). Best regards, John

          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