Click or drag to resize

PostProcessFrameBufferEventArgsTryCopyFrameBuffer Method (IntPtr, Int32, Int32)

Copies the frame into caller owned memory as 32 bit BGRA, with every pixel made opaque.

Namespace:  Rhino.Display
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public bool TryCopyFrameBuffer(
	IntPtr destination,
	int destinationStride,
	int destinationCapacityInBytes
)

Parameters

destination
Type: SystemIntPtr
Start of the destination buffer. This is the start of the buffer whichever row order is asked for, unlike the GDI convention of pointing at the last row.
destinationStride
Type: SystemInt32
Bytes from the start of one destination row to the start of the next. A positive value writes the top row of the image first, a negative value writes the bottom row first.
destinationCapacityInBytes
Type: SystemInt32
Bytes available at destination.

Return Value

Type: Boolean
true if the frame was copied.
See Also