This documentation is for the old version. Go to the latest Graphics Mill docs

Bitmap Methods

The Bitmap type exposes the following members.

Methods

Name Description
Public method {dtor}

Enables using delete operator in C++ applications. It is strongly not recommended to use it directly.

Public method Abort

Aborts currently running operation.

Public method Clear

Clears the image and sets all pixels to the specified color.

Public method ClearHistory

Discards both undo and redo history.

Public method ClearRedoHistory

Discards redo history.

Public method ClearUndoHistory

Discards undo history.

Public method Clone

Creates a full copy of bitmap. All the bitmap data and object properties are copied.

Public method Create Overloaded.

Discards old bitmap data and creates new bitmap

Public method Deserialize

Deserializes the bitmap object.

Public method Dispose

Releases all resources used by this Bitmap.

(Overrides LockableObject.Dispose().)
Public method Draw Overloaded.

Draws a bitmap on various surfaces as Bitmap, GdiGraphics, System.Drawing.Graphics classes, or Windows GDI device context.

Public method Equals (Inherited from Object.)
Public method Export

Returns pixels of bitmap as 3D array.

Public method Static member FromClipboard

Extracts the image data from the clipboard and creates the Bitmap class instance containing this image data.

Public method Static member FromHdc

Extracts the image data from the specified device context and creates the Bitmap class instance containing this image data.

Public method GetEmptyMask

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 GetGdiGraphics

Returns GdiGraphics object associated with this Bitmap.

Public method GetGdiplusGraphics

Returns System.Drawing.Graphics object associated with this Bitmap.

Public method GetHashCode (Inherited from Object.)
Public method GetObjectData

Populates a SerializationInfo with the data needed to serialize the Bitmap object.

Public method GetPixel

Returns pixel value at specified coordinates.

Public method GetType (Inherited from Object.)
Public method HorizontalPixelsToUnits

Converts horizontal value from pixels to unit specified in Unit property.

(Inherited from UnitConverterObject.)
Public method HorizontalUnitsToPixels

Converts horizontal value from unit specified in Unit property to pixels.

(Inherited from UnitConverterObject.)
Public method Import

Fills pixels of the current bitmap from given 3D array.

Public method Load Overloaded.

Loads the bitmap from some external source.

Public method LoadFromClipboard

Loads the bitmap from the clipboard.

Public method LoadFromHdc

Captures a bitmap from the specified device context.

Public method LoadThumbnail Overloaded.

Loads the thumbnail from specified file on-the-fly.

Public method Lock

Locks the object.

(Inherited from LockableObject.)
Public method LockBits Overloaded.

Locks a rectangular area of the bitmap and returns BitmapData object which provides direct access to pixels (without copying).

Protected method MemberwiseClone (Inherited from Object.)
Public method Redo Overloaded.

Redoes last undone change.

Public method Save Overloaded.

Saves the bitmap into specified file.

Public method SaveState

Saves state of the object.

Public method SaveToClipboard

Saves the bitmap into the clipboard.

Public method Serialize

Serializes the bitmap object.

Public method SetPixel

Sets pixel value at the specified coordinates.

Public method ToGdiplusBitmap

Returns System.Drawing.Bitmap containing a copy of the image stored in current Bitmap class instance.

Public method ToGdiplusBitmapDirectly

Returns System.Drawing.Bitmap which references to the same bitmap data as the current Bitmap class instance.

Public method ToString (Inherited from Object.)
Public method Undo Overloaded.

Undoes last made change.

Public method Unload

Unloads bitmap data.

Public method Unlock

Unlocks the object previously locked with method Lock().

(Inherited from LockableObject.)
Public method UnlockBits

Unlocks previously locked area of bitmap with LockBits(Int32, Int32, Int32, Int32) method.

Public method VerticalPixelsToUnits

Converts vertical value from pixels to unit specified in Unit property.

(Inherited from UnitConverterObject.)
Public method VerticalUnitsToPixels

Converts vertical value from unit specified in Unit property to pixels.

(Inherited from UnitConverterObject.)

Operators

Name Description
Public operator Static member Implicit Overloaded.

Cast this instance of the Aurigma.GraphicsMill.Bitmap to System.Drawing.Bitmap or vice versa.

See Also

Reference