Search code examples
asp.netsystem.drawingsystem.drawing.imaging

how to draw in asp.net(c#)?


how to draw next image with labels in rectangles? thanks for help:

enter image description here


Solution

  • Use the different classes in the System.Drawing namespace.

    Alternatively, use one of the many drawing libraries around.


    Note:

    The documentation on MSDN gives the following warning:

    Classes within the System.Drawing namespace are not supported for use within a Windows or ASP.NET service. Attempting to use these classes from within one of these application types may produce unexpected problems, such as diminished service performance and run-time exceptions. For a supported alternative, see Windows Imaging Components.

    However, I and others who have done so have not found problems. Even MSDN magazine suggests it...