Skip to content

Drawing on an inserted image at runtime ?

Ersin Miman

Asked Jun 20, 2007, 10:24 AM EDT1 answer
Share
LinkedInX
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

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Mahesh Chand
    0

    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.

    0