Draw text along points
-
Hello I want to draw a text along an array of Points Any suggestion for a good approach ? Thanks for any help
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.”
-
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.”
-
Thank you Yest it sounds interresting I'm trying to figure out what are the "Byte [] types" in the constructor of a Graphics path
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
andGraphicsPath.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
-
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
andGraphicsPath.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
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
-
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
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.”
-
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
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.”
-
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.”
-
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.”
-
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.”