hi all,
I use TXTextControl (or RichTextBox). I inserted an image on it at runtime and I want to draw some shapes on the image at runtime.
How can I do that?
Thank you
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Mahesh ChandPosted Jun 20, 2007, 3:04 PM
You need to create a GraphicsPath object and add Image and graphics shapes to it and draw it. To draw on a RichTextBox, you have to use CreateGraphics() method of RichTextBox, that will return a Graphics object and use Graphics.DrawPath() method to draw the path.