using (var surface = new Cairo.ImageSurface(Cairo.Format.ARGB32, 100, 100)) using (var cr = new Cairo.Context(surface)) { // Move to the center of the surface cr.MoveTo(50, 50); // Draw a diagonal line cr.RelLineTo(25, 25); // Set line width, color, and stroke cr.LineWidth = 2; cr.SetSourceRGB(1, 1, 1); cr.Stroke(); surface.WriteToPng("line.png"); }This code creates a Cairo surface and context, moves to the center of the surface, draws a diagonal line using RelLineTo, sets the line width and color, and strokes the path. The resulting image is saved as a PNG file. The package library for Cairo is called "cairo-sharp".