Assembly: System.Drawing (in system.drawing.dll)
[SerializableAttribute] [ComVisibleAttribute(true)] public ref class Bitmap sealed : public Image
/** @attribute SerializableAttribute() */ /** @attribute ComVisibleAttribute(true) */ public final class Bitmap extends Image
SerializableAttribute ComVisibleAttribute(true) public final class Bitmap extends Image
A bitmap consists of the pixel data for a graphics image and its attributes. There are many standard formats for saving a bitmap to a file. GDI+ supports the following file formats: BMP, GIF, EXIG, JPG, PNG and TIFF. For more information about supported formats, see Types of Bitmaps.
You can create images from files, streams, and other sources by using one of the Bitmap constructors and save them to a stream or to the file system with the Save method. Images are drawn to the screen or to memory by using the DrawImage method of the Graphics object. For a list of topics about working with image files, see Working with Images, Bitmaps, and Metafiles.
The Bitmap class is not accessible across application domains. For example, if you create a dynamic AppDomain and create several brushes, pens, and bitmaps in that domain, then pass these objects back to the main application domain, you can successfully use the pens and brushes. However, if you call the DrawImage method to draw the marshaled Bitmap, you receive the following exception.
Remoting cannot find field "native image" on type "System.Drawing.Image".
Creates an image from the SampImag.jpg file in the folder of the example.
Creates a point at which to draw the upper-left corner of the image.
Draws the unscaled image to the screen.
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter EditionThe Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.