Click or drag to resize
SoOffscreenRendererGetBuffer Method (SoOffscreenRendererBufferTypes)

Returns a buffer containing the rendered image.

Namespace: OIV.Inventor
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 9.9.13.0 (9.9.13.0)
Syntax
public SbNativeArray<byte> GetBuffer(
	SoOffscreenRendererBufferTypes buffType
)

Parameters

buffType
Type: OIV.InventorSoOffscreenRendererBufferTypes

Return Value

Type: SbNativeArrayByte
Remarks

If the specified buffer type is RGB_BUFFER, the buffer is an array of bytes. Each pixel is stored sequentially by scanline, starting with the lower left corner. The data stored for each pixel is determined by the Components set before rendering. Pixels are stored in RGBA order and are packed without any padding between pixels or scanlines.

getBuffer returns null if #writeToJPEGBuffer has not been called yet. The returned buffer is available until #writeToJPEGBuffer is called again.

The buffer size is returned by the getBufferSize method.

See Also