Bitmap Class |
Namespace: Eto.Drawing
The Bitmap type exposes the following members.
| Name | Description | |
|---|---|---|
| Bitmap(Byte) |
Initializes a new instance of a Bitmap from a bytes array
| |
| Bitmap(Stream) |
Initializes a new instance of a Bitmap from a stream
| |
| Bitmap(String) |
Initializes a new instance of a Bitmap from a file
| |
| Bitmap(BitmapIHandler) |
Initializes a new instance of a Bitmap with the specified handler
| |
| Bitmap(Size, PixelFormat) |
Initializes a new instance of a Bitmap with the specified size and format
| |
| Bitmap(Int32, Int32, Graphics) |
Creates a new bitmap optimized for drawing on the specified graphics | |
| Bitmap(Int32, Int32, PixelFormat) |
Initializes a new instance of a Bitmap with the specified size and format
| |
| Bitmap(Int32, Int32, PixelFormat, IEnumerableColor) |
Creates a new bitmap with the specified dimensions, format and pixel data
| |
| Bitmap(Int32, Int32, PixelFormat, IEnumerableInt32) |
Creates a new bitmap with the specified dimensions, format, and integer pixel data
| |
| Bitmap(Image, NullableInt32, NullableInt32, ImageInterpolation) |
Create a new scaled bitmap with the specified width and height |
| Name | Description | |
|---|---|---|
| Clone |
Creates a clone of the bitmap
| |
| FromResource(String, Assembly) |
Loads a bitmap from the resource in the specified or caller's assembly
| |
| FromResource(String, Type) |
Loads a bitmap from a resource in the same assembly as the specified type | |
| GetPixel(Point) |
Gets the color of the pixel at the specified position | |
| GetPixel(Int32, Int32) |
Gets the color of the pixel at the specified coordinates.
| |
| Lock |
Locks the data of the image to directly access the bytes of the image
| |
| Save(Stream, ImageFormat) |
Saves the bitmap to a stream in the specified format
| |
| Save(String, ImageFormat) |
Saves the bitmap to a file in the specified format
| |
| SetPixel(Point, Color) |
Sets the pixel color at the specified position.
| |
| SetPixel(Int32, Int32, Color) |
Sets the color of the pixel at the specified coordinates.
| |
| ToByteArray |
Saves the bitmap to an image of the specified imageFormat into a byte array
| |
| WithSize(Size) |
Gets an Icon representation of this Bitmap scaled to draw within the specified fitting size.
| |
| WithSize(Int32, Int32) |
Gets an Icon representation of this Bitmap scaled to draw within the specified fitting size.
|