Click or drag to resize

BitmapData Class

Bitmap data information when accessing a Bitmap's data directly
Inheritance Hierarchy
SystemObject
  Eto.DrawingBitmapData

Namespace:  Eto.Drawing
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public abstract class BitmapData : IDisposable

The BitmapData type exposes the following members.

Constructors
  NameDescription
Protected methodBitmapData
Initializes a new instance of the BitmapData class
Top
Properties
  NameDescription
Public propertyBitsPerPixel
Gets the bits per pixel
Public propertyBytesPerPixel
Gets the bytes per pixel
Public propertyControlObject
Gets the platform-specific control object for the bitmap data
Public propertyData
Gets the pointer to the data of the bitmap
Public propertyFlipped
Gets a value indicating that the data is flipped (upside down)
Public propertyImage
Gets the image this data is for
Public propertyScanWidth
Gets the width (in bytes) of each scan line (row) of pixel data
Top
Methods
  NameDescription
Public methodDispose
Releases all resource used by the BitmapData object.
Protected methodDispose(Boolean)
Disposes the brush
Public methodGetPixel(Point)
Gets the color of the pixel at the specified position
Public methodGetPixel(Int32, Int32)
Gets the color of the pixel at the specified coordinates.
Public methodGetPixels
Gets an enumerable of pixels for each scan line from top to bottom.
Public methodSetPixel(Point, Color)
Sets the pixel color at the specified position.
Public methodSetPixel(Int32, Int32, Color)
Sets the pixel color at the specified coordinates.
Public methodSetPixels
Use this to set the pixels of the bitmap from an array or other source.
Public methodTranslateArgbToData
Translates a 32-bit ARGB value to the platform specific pixel format value
Public methodTranslateDataToArgb
Translates the platform specific pixel format to a 32-bit ARGB value
Top
Remarks
The bitmap data is accessed through Lock, which locks the data for direct access using the Data pointer. Ensure you call dispose the instance when you are done accessing or writing the data, otherwise the bitmap may be left in an unusable state.
See Also