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. Web Development
  3. ASP.NET
  4. Drawing Lines

Drawing Lines

Scheduled Pinned Locked Moved ASP.NET
csharpc++javascriptasp-netgraphics
5 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.
  • B Offline
    B Offline
    braber
    wrote on last edited by
    #1

    Hello All, I am wondering if anyone can point me in the right direction. I am trying to draw a line or possibly several lines within a div control using (x1,y1,x2,y2) points. I do not want to use VML or JavaScript, I am hoping for something native to ASP.NET. Thanks in Advance Brandon

    J B R 3 Replies Last reply
    0
    • B braber

      Hello All, I am wondering if anyone can point me in the right direction. I am trying to draw a line or possibly several lines within a div control using (x1,y1,x2,y2) points. I do not want to use VML or JavaScript, I am hoping for something native to ASP.NET. Thanks in Advance Brandon

      J Offline
      J Offline
      J4amieC
      wrote on last edited by
      #2

      You can generate an image on the fly using GDI+ then save that image to the server for display using a normal IMG tag Current blacklist svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour

      B 1 Reply Last reply
      0
      • J J4amieC

        You can generate an image on the fly using GDI+ then save that image to the server for display using a normal IMG tag Current blacklist svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour

        B Offline
        B Offline
        braber
        wrote on last edited by
        #3

        I saw the GDI+ solution, however, the size of the div's vary and there is an image already in the div cotrol. So the only solution is to then create a transparent image with my lines on it that is dynamically generated and has a higher z-index? brandon

        1 Reply Last reply
        0
        • B braber

          Hello All, I am wondering if anyone can point me in the right direction. I am trying to draw a line or possibly several lines within a div control using (x1,y1,x2,y2) points. I do not want to use VML or JavaScript, I am hoping for something native to ASP.NET. Thanks in Advance Brandon

          B Offline
          B Offline
          braber
          wrote on last edited by
          #4

          Testing E-mail response (It doesnt seem to be working for me)... :)

          1 Reply Last reply
          0
          • B braber

            Hello All, I am wondering if anyone can point me in the right direction. I am trying to draw a line or possibly several lines within a div control using (x1,y1,x2,y2) points. I do not want to use VML or JavaScript, I am hoping for something native to ASP.NET. Thanks in Advance Brandon

            R Offline
            R Offline
            RichardGrimmer
            wrote on last edited by
            #5

            braber wrote:

            I do not want to use VML or JavaScript

            Then you're pretty scuppered as I've been finding out!!! There are no functions (AFAIK) that allow you to "draw" to an area of a webform - the only way to do it is to use divs - to draw a vertical line, use a div 1px wide, and 1px tall for a horizontal line...of course the problem arises when you wanna draw a sloped line hehe! SVG an option? "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox

            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