# Bitmap class

Namespace: [Eto.Drawing](https://eto.picoe.ca/api/namespace/eto.drawing.md) · Assembly: [Eto](https://eto.picoe.ca/api/assembly/eto.md)

```cs
[Handler(Bitmap.IHandler)]
[TypeConverter(BitmapConverter)]
public class Bitmap : Image
```

Represents an image

## Constructors

- [Bitmap](https://eto.picoe.ca/api/type/eto.drawing.bitmap/ctor.md): (10 overloads) Initializes a new instance of a Bitmap from a `bytes` array

## Methods

- [Clone](https://eto.picoe.ca/api/type/eto.drawing.bitmap/clone.md): Creates a clone of the bitmap
- [FromResource](https://eto.picoe.ca/api/type/eto.drawing.bitmap/fromresource.md): (2 overloads, static) Loads a bitmap from the resource in the specified or caller's assembly
- [GetPixel](https://eto.picoe.ca/api/type/eto.drawing.bitmap/getpixel.md): (2 overloads) Gets the color of the pixel at the specified coordinates.
- [Lock](https://eto.picoe.ca/api/type/eto.drawing.bitmap/lock.md): Locks the data of the image to directly access the bytes of the image
- [Save](https://eto.picoe.ca/api/type/eto.drawing.bitmap/save.md): (2 overloads) Saves the bitmap to a stream in the specified format
- [SetPixel](https://eto.picoe.ca/api/type/eto.drawing.bitmap/setpixel.md): (2 overloads) Sets the color of the pixel at the specified coordinates.
- [ToByteArray](https://eto.picoe.ca/api/type/eto.drawing.bitmap/tobytearray.md): Saves the bitmap to an image of the specified `imageFormat` into a byte array
- [WithSize](https://eto.picoe.ca/api/type/eto.drawing.bitmap/withsize.md): (2 overloads) Gets an Icon representation of this Bitmap scaled to draw within the specified fitting size.

## Inherited Members

- From [Image](https://eto.picoe.ca/api/type/eto.drawing.image.md): [Height](https://eto.picoe.ca/api/type/eto.drawing.image/height.md), [Size](https://eto.picoe.ca/api/type/eto.drawing.image/size.md), [Width](https://eto.picoe.ca/api/type/eto.drawing.image/width.md)
- From [Widget](https://eto.picoe.ca/api/type/eto.widget.md): [ControlObject](https://eto.picoe.ca/api/type/eto.widget/controlobject.md), [Handler](https://eto.picoe.ca/api/type/eto.widget/handler.md), [ID](https://eto.picoe.ca/api/type/eto.widget/id.md), [IsDisposed](https://eto.picoe.ca/api/type/eto.widget/isdisposed.md), [NativeHandle](https://eto.picoe.ca/api/type/eto.widget/nativehandle.md), [Platform](https://eto.picoe.ca/api/type/eto.widget/platform.md), [Properties](https://eto.picoe.ca/api/type/eto.widget/properties.md), [Style](https://eto.picoe.ca/api/type/eto.widget/style.md), [StyleChanged](https://eto.picoe.ca/api/type/eto.widget/stylechanged.md), [Dispose](https://eto.picoe.ca/api/type/eto.widget/dispose.md), [GetCallback](https://eto.picoe.ca/api/type/eto.widget/getcallback.md), [Initialize](https://eto.picoe.ca/api/type/eto.widget/initialize.md), [OnStyleChanged](https://eto.picoe.ca/api/type/eto.widget/onstylechanged.md), [ToString](https://eto.picoe.ca/api/type/eto.widget/tostring.md)
