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
Drawing on an inserted image at runtime ?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Mahesh ChandRank #1 · 392.9K pointsPosted Jun 20, 2007, 11:04 AM EDT
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.