ICustomBitmapDataRowGetRefAsT Method

Gets a reference to a value interpreted as T within the current row at the specified x index.

Definition

Namespace: KGySoft.Drawing.Imaging
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 9.0.0
C#
ref T GetRefAs<T>(
	int x
)
where T : struct, new()

Parameters

x  Int32
The x-coordinate of the value within the row to retrieve. The valid range depends on the size of T.

Type Parameters

T
The type of the value to return a reference for. Must be a value type without managed references.

Return Value

T
A reference to a value interpreted as T within the current row at the specified x index.

Exceptions

ArgumentOutOfRangeExceptionx is not valid for RowSize and T.

See Also