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. curve throught wo points

curve throught wo points

Scheduled Pinned Locked Moved C / C++ / MFC
question
9 Posts 6 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
    suja sreekumar
    wrote on last edited by
    #1

    i want to draw a smooth curve given two points. how do i do that??:confused:

    A _ C H 4 Replies Last reply
    0
    • S suja sreekumar

      i want to draw a smooth curve given two points. how do i do that??:confused:

      A Offline
      A Offline
      Anu_Bala
      wrote on last edited by
      #2

      Give first point in x, y and draw the curve to second point pDC->MoveTo(x,y); pDC->LineTo(x,y+200)

      _ H 2 Replies Last reply
      0
      • A Anu_Bala

        Give first point in x, y and draw the curve to second point pDC->MoveTo(x,y); pDC->LineTo(x,y+200)

        _ Offline
        _ Offline
        _AnsHUMAN_
        wrote on last edited by
        #3

        This will only draw a line. Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_

        S 1 Reply Last reply
        0
        • S suja sreekumar

          i want to draw a smooth curve given two points. how do i do that??:confused:

          _ Offline
          _ Offline
          _AnsHUMAN_
          wrote on last edited by
          #4

          What type of curve? Have a look at CDC::Arc() if it suits your needs. Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_

          1 Reply Last reply
          0
          • S suja sreekumar

            i want to draw a smooth curve given two points. how do i do that??:confused:

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

            To draw a curve, you need three points. With two points, you can only draw a line.


            Cédric Moonen Software developer
            Charting control

            1 Reply Last reply
            0
            • A Anu_Bala

              Give first point in x, y and draw the curve to second point pDC->MoveTo(x,y); pDC->LineTo(x,y+200)

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

              wow its a line (only):-D_**


              **_

              whitesky


              1 Reply Last reply
              0
              • S suja sreekumar

                i want to draw a smooth curve given two points. how do i do that??:confused:

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

                curve=three points see Drawing Curved Objects[^]i think its good and see Draw a curve with control points [^]_**


                **_

                whitesky


                1 Reply Last reply
                0
                • _ _AnsHUMAN_

                  This will only draw a line. Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_

                  S Offline
                  S Offline
                  SilentSilent
                  wrote on last edited by
                  #8

                  _AnShUmAn_ wrote:

                  This will only draw a line.

                  Let's say a very smooth curve! :laugh:

                  _ 1 Reply Last reply
                  0
                  • S SilentSilent

                    _AnShUmAn_ wrote:

                    This will only draw a line.

                    Let's say a very smooth curve! :laugh:

                    _ Offline
                    _ Offline
                    _AnsHUMAN_
                    wrote on last edited by
                    #9

                    :->Hmm. Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_

                    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