Represents the advanced drawing functionality provided by Graphics Mill.
Namespace:
Aurigma.GraphicsMill.AdvancedDrawing
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
public sealed class Graphics : IDisposable
This class is implemented with Anti-Grain Geometry (AGG), that allows getting high quality and precise drawings. The class provides number of methods to draw outlined (DrawFoo methods) and filled (FillFoo methods) lines, curves, shapes, and paths.
With the set of DrawImage() methods you can combine and overlay images.
Also this class provides a canvas for text output. You can create plain, bounded, distorted, and art texts on Graphics.
using (var bitmap = new Bitmap(160, 120, PixelFormat.Format24bppRgb, RgbColor.White)) using (var graphics = bitmap.GetAdvancedGraphics()) { graphics.DrawRectangle(new Pen(RgbColor.Green, 0.5f), 20, 20, 120, 80); graphics.FillRectangle(new SolidBrush(RgbColor.Yellow), 20, 20, 120, 80); bitmap.Save(@"Images\Output\out.png"); }