using System; using System.Drawing; class Program { static void Main(string[] args) { // Create a Bitmap object to draw on Bitmap bmp = new Bitmap(400, 400); // Create a Graphics object from the Bitmap Graphics g = Graphics.FromImage(bmp); // Create two points to draw the line between Point p1 = new Point(100, 100); Point p2 = new Point(300, 300); // Draw the line between the two points g.DrawLine(Pens.Black, p1, p2); // Save the bitmap to a file bmp.Save("line.bmp"); } }In this example, a Bitmap object is created with a size of 400x400 pixels. A Graphics object is created from the Bitmap and two points are defined to draw a line between. The line is drawn using the DrawLine method of the Graphics object with a pen of the color black. Finally, the bitmap is saved to a file named "line.bmp". The package library for System DrawLine is System.Drawing.dll, which contains classes for creating and manipulating graphics objects, pens, brushes, fonts, and images.