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. Draw text along points

Draw text along points

Scheduled Pinned Locked Moved C#
data-structureshelpquestion
10 Posts 2 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
    baranils
    wrote on last edited by
    #1

    Hello I want to draw a text along an array of Points Any suggestion for a good approach ? Thanks for any help

    H 1 Reply Last reply
    0
    • B baranils

      Hello I want to draw a text along an array of Points Any suggestion for a good approach ? Thanks for any help

      H Offline
      H Offline
      Henry Minute
      wrote on last edited by
      #2

      Do some research on the GraphicsPath class. That should give you some ideas. :)

      Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

      B 1 Reply Last reply
      0
      • H Henry Minute

        Do some research on the GraphicsPath class. That should give you some ideas. :)

        Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

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

        Thank you Yest it sounds interresting I'm trying to figure out what are the "Byte [] types" in the constructor of a Graphics path

        H 1 Reply Last reply
        0
        • B baranils

          Thank you Yest it sounds interresting I'm trying to figure out what are the "Byte [] types" in the constructor of a Graphics path

          H Offline
          H Offline
          Henry Minute
          wrote on last edited by
          #4

          baranils wrote:

          I'm trying to figure out what are the "Byte [] types" in the constructor

          I wouldn't worry too much about that for now. I don't believe it will help to solve your problem. Look at GraphicsPath.AddString and GraphicsPath.Warp methods. [Edit] Also take a look at this[^] article from here on CP. It's in VB but I'm sure that will not be a problem. There are loads of code converter apps on the web, if you are unable to do it yourself. [/Edit]

          Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

          modified on Thursday, April 16, 2009 6:53 AM

          B 1 Reply Last reply
          0
          • H Henry Minute

            baranils wrote:

            I'm trying to figure out what are the "Byte [] types" in the constructor

            I wouldn't worry too much about that for now. I don't believe it will help to solve your problem. Look at GraphicsPath.AddString and GraphicsPath.Warp methods. [Edit] Also take a look at this[^] article from here on CP. It's in VB but I'm sure that will not be a problem. There are loads of code converter apps on the web, if you are unable to do it yourself. [/Edit]

            Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

            modified on Thursday, April 16, 2009 6:53 AM

            B Offline
            B Offline
            baranils
            wrote on last edited by
            #5

            I see ! So finaly GraphicsPath needs a TransformMatrix ! I was expecting that the graphicpath string will automaticaly follow the path defined by the array of point So what makes the worth of the GraphicPath for this purpose ? Maybe it will be more simple to use a Graphics.DrawString directely, cutting the string into small pieces

            H 2 Replies Last reply
            0
            • B baranils

              I see ! So finaly GraphicsPath needs a TransformMatrix ! I was expecting that the graphicpath string will automaticaly follow the path defined by the array of point So what makes the worth of the GraphicPath for this purpose ? Maybe it will be more simple to use a Graphics.DrawString directely, cutting the string into small pieces

              H Offline
              H Offline
              Henry Minute
              wrote on last edited by
              #6

              I've just edited my previous post. Take a look at that, and come back if you still have problems.

              Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

              1 Reply Last reply
              0
              • B baranils

                I see ! So finaly GraphicsPath needs a TransformMatrix ! I was expecting that the graphicpath string will automaticaly follow the path defined by the array of point So what makes the worth of the GraphicPath for this purpose ? Maybe it will be more simple to use a Graphics.DrawString directely, cutting the string into small pieces

                H Offline
                H Offline
                Henry Minute
                wrote on last edited by
                #7

                Just in case you are still having difficulties, I have found a source in C# here[^]. Jolly good it is too. Hope this helps. :)

                baranils wrote:

                I was expecting that the graphicpath string will automaticaly follow the path defined by the array of point

                Come along now, this is MS we are talking about. Do you really expect that they would do anything to make our lives easier? :-D

                Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

                B 1 Reply Last reply
                0
                • H Henry Minute

                  Just in case you are still having difficulties, I have found a source in C# here[^]. Jolly good it is too. Hope this helps. :)

                  baranils wrote:

                  I was expecting that the graphicpath string will automaticaly follow the path defined by the array of point

                  Come along now, this is MS we are talking about. Do you really expect that they would do anything to make our lives easier? :-D

                  Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

                  B Offline
                  B Offline
                  baranils
                  wrote on last edited by
                  #8

                  Thank you very much This is a piece of work ! :omg:

                  H 1 Reply Last reply
                  0
                  • B baranils

                    Thank you very much This is a piece of work ! :omg:

                    H Offline
                    H Offline
                    Henry Minute
                    wrote on last edited by
                    #9

                    It's a pleasure. Your question raised my interest, so I did a bit of rooting around, and got lucky. Although your English is very good, I am guessing that it is not your first language (your location also gives a clue). So FYI you might want to be a little careful about using the phrase:

                    baranils wrote:

                    This is a piece of work

                    In colloquial English it actually means the opposite of what I think you meant. At least what I hope you meant. As an example if you know a particularly nasty man, you might say "Now he's a piece of work isn't he?".

                    Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

                    B 1 Reply Last reply
                    0
                    • H Henry Minute

                      It's a pleasure. Your question raised my interest, so I did a bit of rooting around, and got lucky. Although your English is very good, I am guessing that it is not your first language (your location also gives a clue). So FYI you might want to be a little careful about using the phrase:

                      baranils wrote:

                      This is a piece of work

                      In colloquial English it actually means the opposite of what I think you meant. At least what I hope you meant. As an example if you know a particularly nasty man, you might say "Now he's a piece of work isn't he?".

                      Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

                      B Offline
                      B Offline
                      baranils
                      wrote on last edited by
                      #10

                      Get it ! Better to say : it's not a piece of cake :-D

                      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