IBitmapData Interface

KGy SOFT Drawing Libraries Help
Represents the raw data of a bitmap. To create a managed instance use the BitmapDataFactory class. To obtain a readable or writable instance for a native Bitmap instance call the GetReadableBitmapData, GetWritableBitmapData or GetReadWriteBitmapData extension methods.
See the Remarks section of the GetReadWriteBitmapData method for details and examples.

Namespace:  KGySoft.Drawing.Imaging
Assembly:  KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 5.2.0
Syntax

public interface IBitmapData : IDisposable

The IBitmapData type exposes the following members.

Properties

  NameDescription
Public propertyAlphaThreshold
If this IBitmapData represents a bitmap with single bit alpha or with a palette that has a transparent color, then gets a threshold value for the Color32.A property, under which the color is considered transparent. If 0, then the pixels to be set will never be transparent.
Public propertyBackColor
When accessing pixels of indexed bitmaps, or setting pixels of bitmaps without alpha support, it gets the color of the background. For example, when setting color values with alpha, which are considered opaque the color to set will be blended with this color before setting the pixel.
See the Remarks section of the GetReadWriteBitmapData extension method for details and examples.
Public propertyHeight
Gets the height of the current IBitmapData instance in pixels.
Public propertyPalette
Gets a Palette instance representing the colors of the owner Bitmap if it has an indexed PixelFormat, or  if the owner Bitmap is not an indexed one. For indexed bitmaps the PixelFormat property returns Format8bppIndexed, Format4bppIndexed or Format1bppIndexed.
Public propertyPixelFormat
Gets the PixelFormat of the current IBitmapData instance.
See the Remarks section for details.
Public propertyRowSize
Gets the size of a row in bytes, or zero, if this IBitmapData instance does not have an actual raw buffer to access. Otherwise, RowSize is similar to BitmapData.Stride but this property never returns a negative value.
See the Remarks section for details.
Public propertyWidth
Gets the width of the current IBitmapData instance in pixels.
Top
See Also

Reference