---
title: "Bitmap Methods "
canonical: https://www.graphicsmill.com/docs/gm5/Methods_T_Aurigma_GraphicsMill_Bitmap.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# Bitmap Methods 
 
The [Bitmap](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Bitmap.htm.md) type exposes the following members.
 
## Methods

|   |  Name |  Description |
| --- | --- | --- |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [{dtor}](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Bitmap_%7Bdtor%7D.htm.md) |  Enables using delete operator in C++ applications. It is strongly not recommended to use it directly. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [Abort](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Bitmap_Abort.htm.md) |  Aborts currently running operation. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [Clear](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Bitmap_Clear_1_929597d9.htm.md) |  Clears the image and sets all pixels to the specified color. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [ClearHistory](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Bitmap_ClearHistory.htm.md) |  Discards both undo and redo history. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [ClearRedoHistory](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Bitmap_ClearRedoHistory.htm.md) |  Discards redo history. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [ClearUndoHistory](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Bitmap_ClearUndoHistory.htm.md) |  Discards undo history. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [Clone](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Bitmap_Clone.htm.md) |  Creates a full copy of bitmap. All the bitmap data and object properties are copied. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [Create](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_Bitmap_Create.htm.md) |  Overloaded. <br>Discards old bitmap data and creates new bitmap |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [Deserialize](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Bitmap_Deserialize_1_bca7c9fe.htm.md) |  Deserializes the bitmap object. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [Dispose](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Bitmap_Dispose.htm.md) |  Releases all resources used by this [Bitmap](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Bitmap.htm.md).<br> (Overrides [LockableObject](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_LockableObject.htm.md).[Dispose()](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_LockableObject_Dispose.htm.md).) |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [Draw](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_Bitmap_Draw.htm.md) |  Overloaded. <br>Draws a bitmap on various surfaces as [Bitmap](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Bitmap.htm.md), [GdiGraphics](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Drawing_GdiGraphics.htm.md), [System.Drawing.Graphics](http://msdn2.microsoft.com/en-us/ac148eb3) classes, or Windows GDI device context. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [Equals](http://msdn2.microsoft.com/en-us/bsc2ak47) |  (Inherited from [Object](http://msdn2.microsoft.com/en-us/e5kfa45b).) |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [Export](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Bitmap_Export.htm.md) |  Returns pixels of bitmap as 3D array. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) ![Static member](https://www.graphicsmill.com/docs/gm5/icons/static.gif) |  [FromClipboard](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Bitmap_FromClipboard.htm.md) |  Extracts the image data from the clipboard and creates the [Bitmap](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Bitmap.htm.md) class instance containing this image data. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) ![Static member](https://www.graphicsmill.com/docs/gm5/icons/static.gif) |  [FromHdc](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Bitmap_FromHdc_2_cd97b51f.htm.md) |  Extracts the image data from the specified device context and creates the [Bitmap](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Bitmap.htm.md) class instance containing this image data. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [GetEmptyMask](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Bitmap_GetEmptyMask.htm.md) |  Returns grayscale image of the same size as current bitmap filled with black color. It can be used as mask template for transforms. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [GetGdiGraphics](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Bitmap_GetGdiGraphics.htm.md) |  Returns [GdiGraphics](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Drawing_GdiGraphics.htm.md) object associated with this [Bitmap](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Bitmap.htm.md). |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [GetGdiplusGraphics](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Bitmap_GetGdiplusGraphics.htm.md) |  Returns [System.Drawing.Graphics](http://msdn2.microsoft.com/en-us/ac148eb3) object associated with this [Bitmap](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Bitmap.htm.md). |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [GetHashCode](http://msdn2.microsoft.com/en-us/zdee4b3y) |  (Inherited from [Object](http://msdn2.microsoft.com/en-us/e5kfa45b).) |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [GetObjectData](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Bitmap_GetObjectData_2_c341f0d6.htm.md) |  Populates a [SerializationInfo](http://msdn2.microsoft.com/en-us/a9b6042e) with the data needed to serialize the [Bitmap](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Bitmap.htm.md) object. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [GetPixel](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Bitmap_GetPixel_2_22dcb54d.htm.md) |  Returns pixel value at specified coordinates. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [GetType](http://msdn2.microsoft.com/en-us/dfwy45w9) |  (Inherited from [Object](http://msdn2.microsoft.com/en-us/e5kfa45b).) |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [HorizontalPixelsToUnits](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_UnitConverterObject_HorizontalPixelsToUnits_1_e1836fc4.htm.md) |  Converts horizontal value from pixels to unit specified in [Unit](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_UnitConverterObject_Unit.htm.md) property.<br> (Inherited from [UnitConverterObject](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_UnitConverterObject.htm.md).) |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [HorizontalUnitsToPixels](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_UnitConverterObject_HorizontalUnitsToPixels_1_7a94462e.htm.md) |  Converts horizontal value from unit specified in [Unit](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_UnitConverterObject_Unit.htm.md) property to pixels.<br> (Inherited from [UnitConverterObject](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_UnitConverterObject.htm.md).) |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [Import](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Bitmap_Import_3_413b0f7a.htm.md) |  Fills pixels of the current bitmap from given 3D array. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [Load](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_Bitmap_Load.htm.md) |  Overloaded. <br>Loads the bitmap from some external source. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [LoadFromClipboard](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Bitmap_LoadFromClipboard.htm.md) |  Loads the bitmap from the clipboard. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [LoadFromHdc](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Bitmap_LoadFromHdc_2_cd97b51f.htm.md) |  Captures a bitmap from the specified device context. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [LoadThumbnail](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_Bitmap_LoadThumbnail.htm.md) |  Overloaded. <br>Loads the thumbnail from specified file on-the-fly. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [Lock](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_LockableObject_Lock.htm.md) |  Locks the object.<br> (Inherited from [LockableObject](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_LockableObject.htm.md).) |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [LockBits](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_Bitmap_LockBits.htm.md) |  Overloaded. <br>Locks a rectangular area of the bitmap and returns [BitmapData](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_BitmapData.htm.md) object which provides direct access to pixels (without copying). |
 |  ![Protected method](https://www.graphicsmill.com/docs/gm5/icons/protmethod.gif) |  [MemberwiseClone](http://msdn2.microsoft.com/en-us/57ctke0a) |  (Inherited from [Object](http://msdn2.microsoft.com/en-us/e5kfa45b).) |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [Redo](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_Bitmap_Redo.htm.md) |  Overloaded. <br>Redoes last undone change. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [Save](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_Bitmap_Save.htm.md) |  Overloaded. <br>Saves the bitmap into specified file. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [SaveState](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Bitmap_SaveState.htm.md) |  Saves state of the object. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [SaveToClipboard](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Bitmap_SaveToClipboard.htm.md) |  Saves the bitmap into the clipboard. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [Serialize](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Bitmap_Serialize_1_bca7c9fe.htm.md) |  Serializes the bitmap object. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [SetPixel](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Bitmap_SetPixel_3_5b67216d.htm.md) |  Sets pixel value at the specified coordinates. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [ToGdiplusBitmap](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Bitmap_ToGdiplusBitmap.htm.md) |  Returns [System.Drawing.Bitmap](http://msdn2.microsoft.com/en-us/4e7y164x) containing a copy of the image stored in current [Bitmap](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Bitmap.htm.md) class instance. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [ToGdiplusBitmapDirectly](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Bitmap_ToGdiplusBitmapDirectly.htm.md) |  Returns [System.Drawing.Bitmap](http://msdn2.microsoft.com/en-us/4e7y164x) which references to the same bitmap data as the current [Bitmap](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Bitmap.htm.md) class instance. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [ToString](http://msdn2.microsoft.com/en-us/7bxwbwt2) |  (Inherited from [Object](http://msdn2.microsoft.com/en-us/e5kfa45b).) |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [Undo](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_Bitmap_Undo.htm.md) |  Overloaded. <br>Undoes last made change. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [Unload](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Bitmap_Unload.htm.md) |  Unloads bitmap data. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [Unlock](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_LockableObject_Unlock.htm.md) |  Unlocks the object previously locked with method [Lock()](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_LockableObject_Lock.htm.md).<br> (Inherited from [LockableObject](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_LockableObject.htm.md).) |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [UnlockBits](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Bitmap_UnlockBits_1_ed2555df.htm.md) |  Unlocks previously locked area of bitmap with [LockBits(Int32, Int32, Int32, Int32)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Bitmap_LockBits_4_951ae041.htm.md) method. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [VerticalPixelsToUnits](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_UnitConverterObject_VerticalPixelsToUnits_1_e1836fc4.htm.md) |  Converts vertical value from pixels to unit specified in [Unit](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_UnitConverterObject_Unit.htm.md) property.<br> (Inherited from [UnitConverterObject](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_UnitConverterObject.htm.md).) |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [VerticalUnitsToPixels](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_UnitConverterObject_VerticalUnitsToPixels_1_7a94462e.htm.md) |  Converts vertical value from unit specified in [Unit](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_UnitConverterObject_Unit.htm.md) property to pixels.<br> (Inherited from [UnitConverterObject](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_UnitConverterObject.htm.md).) |
 
## Operators

|   |  Name |  Description |
| --- | --- | --- |
 |  ![Public operator](https://www.graphicsmill.com/docs/gm5/icons/puboperator.gif) ![Static member](https://www.graphicsmill.com/docs/gm5/icons/static.gif) |  [Implicit](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_Bitmap_op_Implicit.htm.md) |  Overloaded. <br>Cast this instance of the [Aurigma.GraphicsMill.Bitmap](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Bitmap.htm.md) to [System.Drawing.Bitmap](http://msdn2.microsoft.com/en-us/4e7y164x) or vice versa. |
   
## See Also

### Reference

- [Bitmap Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Bitmap.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
