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. how to draw double dash line in gdi+

how to draw double dash line in gdi+

Scheduled Pinned Locked Moved C#
questionwinformsgraphicstutorial
4 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
    Berlus
    wrote on last edited by
    #1

    Hello, How can i draw double dash line in gdi+ ? It should look something like this -_-_-_-_-_ . thanks, berlus

    C 1 Reply Last reply
    0
    • B Berlus

      Hello, How can i draw double dash line in gdi+ ? It should look something like this -_-_-_-_-_ . thanks, berlus

      C Offline
      C Offline
      carlecomm
      wrote on last edited by
      #2

      You can simply draw two dash lines :), it's easy!

      B 1 Reply Last reply
      0
      • C carlecomm

        You can simply draw two dash lines :), it's easy!

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

        I want to create a pen that can draw the bottom an top dashed lines, and pass it to external users

        D 1 Reply Last reply
        0
        • B Berlus

          I want to create a pen that can draw the bottom an top dashed lines, and pass it to external users

          D Offline
          D Offline
          DaveyM69
          wrote on last edited by
          #4

          Normally pens that draw custom dashes have their DashPattern property set and their DashStyle property set to Custom. This however only works for the horizontal plane so will not work for you. You will need to create your own Brush (possibly based on TextureBrush?) and pass that to a Pen constructor and return the created object as the Pen class is sealed so you cannot override the Pen default behavior.

          Dave
          BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
          Why are you using VB6? Do you hate yourself? (Christian Graus)

          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