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. Can you tell me how to custom a arrow with GDI+

Can you tell me how to custom a arrow with GDI+

Scheduled Pinned Locked Moved C#
winformsgraphicshelptutorialquestion
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.
  • D Offline
    D Offline
    dreamwinter
    wrote on last edited by
    #1

    I know Pen.CustomLineCap provides the function.But I don't know how to use it. And I tryed to look for some knowledge about this class,but the information is so poor.Can you help me? Thanks!(Please email to me!)

    A M 2 Replies Last reply
    0
    • D dreamwinter

      I know Pen.CustomLineCap provides the function.But I don't know how to use it. And I tryed to look for some knowledge about this class,but the information is so poor.Can you help me? Thanks!(Please email to me!)

      A Offline
      A Offline
      Andy Moore
      wrote on last edited by
      #2

      Here is an example from MSDN. Human beings were not meant to sit in little cubicles staring at computer screens all day, filling out useless forms and listening to eight different bosses drone on about about mission statements. -- Peter Gibbons

      A 1 Reply Last reply
      0
      • A Andy Moore

        Here is an example from MSDN. Human beings were not meant to sit in little cubicles staring at computer screens all day, filling out useless forms and listening to eight different bosses drone on about about mission statements. -- Peter Gibbons

        A Offline
        A Offline
        Andy Moore
        wrote on last edited by
        #3

        Here is an example from MSDN [http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemDrawingDrawing2DCustomLineCapMethodsTopic.asp](http://

        http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemDrawingDrawing2DCustomLineCapMethodsTopic.asp) Human beings were not meant to sit in little cubicles staring at computer screens all day, filling out useless forms and listening to eight different bosses drone on about about mission statements. -- Peter Gibbons

        1 Reply Last reply
        0
        • D dreamwinter

          I know Pen.CustomLineCap provides the function.But I don't know how to use it. And I tryed to look for some knowledge about this class,but the information is so poor.Can you help me? Thanks!(Please email to me!)

          M Offline
          M Offline
          mav northwind
          wrote on last edited by
          #4

          Hi! In order to draw an arrow tip at the beginning or end of a line you'll have to assign the correct CustomLineCap to your pen, as you've already found out. For an arrow, this is an instance of AdjustableArrowCap. You can control the look of the arrow tip by setting the Width, Height, MiddleInset, Filled and WidthScale properties. Then it's really easy. Regards, mav

          D 1 Reply Last reply
          0
          • M mav northwind

            Hi! In order to draw an arrow tip at the beginning or end of a line you'll have to assign the correct CustomLineCap to your pen, as you've already found out. For an arrow, this is an instance of AdjustableArrowCap. You can control the look of the arrow tip by setting the Width, Height, MiddleInset, Filled and WidthScale properties. Then it's really easy. Regards, mav

            D Offline
            D Offline
            dreamwinter
            wrote on last edited by
            #5

            Thank you,I have resolved the problem in your help.:)

            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