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#
  4. Drawing 2D lines using c#

Drawing 2D lines using c#

Scheduled Pinned Locked Moved C#
graphicscsharp
3 Posts 3 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.
  • R Offline
    R Offline
    ramyanaidu
    wrote on last edited by
    #1

    Hai i have a doubt were can i draw 2D lines rather than bitmap and window form,can any one suggest me the better way to draw and save them

    A G 2 Replies Last reply
    0
    • R ramyanaidu

      Hai i have a doubt were can i draw 2D lines rather than bitmap and window form,can any one suggest me the better way to draw and save them

      A Offline
      A Offline
      Anthony Mushrow
      wrote on last edited by
      #2

      The best way, is just to draw to a new Bitmap / Image, and then use its save method. And there's only 2 places you can draw: The Screen, and an offscreen image.

      My current favourite word is: Bauble!

      -SK Genius

      1 Reply Last reply
      0
      • R ramyanaidu

        Hai i have a doubt were can i draw 2D lines rather than bitmap and window form,can any one suggest me the better way to draw and save them

        G Offline
        G Offline
        GuyThiebaut
        wrote on last edited by
        #3

        If you want to conserve space you could create a vector file. That is a file that saves the coordinates of the line (start point, end point, line thickness, line colour, anti-aliasing etc) and then just read the file each time you need to a draw the line(s) according to the vectors in the file. Regards Guy

        You always pass failure on the way to success.
        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