Bitmap bmp = new Bitmap("image.jpg");
Bitmap bmp = new Bitmap(100, 100); Color pixelColor = Color.Red; bmp.SetPixel(50, 50, pixelColor);
Bitmap bmp = new Bitmap("image.jpg"); int newWidth = bmp.Width / 2; int newHeight = bmp.Height / 2; Bitmap resizedBmp = new Bitmap(bmp, newWidth, newHeight);These examples demonstrate the basic usage of the Bitmap class to work with images. The package library for this class is part of the .NET Framework, so it is already included in the runtime environment.