Click or drag to resize
SoOffscreenRendererWriteToJPEGBuffer Method
Writes the JPEG compression stream to a buffer.

Namespace: OIV.Inventor
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 9.9.36.0 (9.9.36.0)
Syntax
public bool WriteToJPEGBuffer(
	float quality
)

Parameters

quality
Type: SystemSingle
Buffer quality expressed between 0 and 1.

Return Value

Type: Boolean
Returns is the buffer is successfully written, otherwise.
Exceptions
ExceptionCondition
[!:System.ArgumentException] If quality is not between [0,1].
Remarks
1.0 is the best quality with the least compression, 0.0 is the worst quality with the most compression. A typical value for quality is 0.7. The JPEG buffer can be retrieved using the GetBufferSize(SoOffscreenRendererBufferTypes) method with the JPEG_BUFFER value.
See Also