ICustomBitmapDataRowT Interface

Represents a low-level custom accessor to a bitmap data row of specific element type.

Definition

Namespace: KGySoft.Drawing.Imaging
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 8.1.0
C#
public interface ICustomBitmapDataRow<T> : ICustomBitmapDataRow
where T : struct, new()
Implements
ICustomBitmapDataRow

Type Parameters

T
The element type of the underlying custom buffer.

Properties

BitmapData Gets the corresponding IBitmapData of this row.
(Inherited from ICustomBitmapDataRow)
Index Gets the index of the current row. Can fall between zero and Height of the owner BitmapData (exclusive upper bound).
(Inherited from ICustomBitmapDataRow)
Item Gets a reference to the actual underlying buffer element at the specified index. To reinterpret the element type of the underlying buffer use the GetRefAsT(Int32) method instead.

Methods

GetRefAsT Gets a reference to a value interpreted as T within the current row at the specified x index.
(Inherited from ICustomBitmapDataRow)
UnsafeGetRefAsT Gets a reference to a value interpreted as T within the current row at the specified x index. This method is similar to GetRefAsT(Int32) but it does not check whether x is valid for RowSize and the size of T. It may provide a better performance but if x is invalid, then memory can be either corrupted or an AccessViolationException can be thrown.
(Inherited from ICustomBitmapDataRow)

See Also