ImagePlaneGetLinearAccessT Method

CVB.Net Documentation
Gets typed linear access to the plane's pixels.

Namespace:  Stemmer.Cvb
Assembly:  Stemmer.Cvb (in Stemmer.Cvb.dll) Version: 14.0.0.0
Syntax

public LinearAccessData<T> GetLinearAccess<T>()
where T : struct, new()

Type Parameters

T
Structure for access a single plane's pixel.

Return Value

Type: LinearAccessDataT
Data structure with the values for accessing the pixels
Exceptions

ExceptionCondition
FormatExceptionIf the plane's pixels are not accessible linearly
ObjectDisposedExceptionIf Parent has already been disposed
InvalidOperationExceptionThrown if the size of T and BytesPerPixel are unequal.
Remarks

See TryGetLinearAccessT(LinearAccessDataT). Unlike it, GetLinearAccess will throw an exception if linear access is not possible on this plane.

Attention: Do not use reference types in T as this will leak memory!

See Also

Reference