Click or drag to resize
SoOffscreenRendererWriteToJPEG Method (String, Single)

Writes the buffer as a JPEG file to the given filename.

Namespace: OIV.Inventor
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 9.9.36.0 (9.9.36.0)
Syntax
public bool WriteToJPEG(
	string filename,
	float quality
)

Parameters

filename
Type: SystemString

the filename to save the result to.

quality
Type: SystemSingle

Specifies the quality of the compression. 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.

Return Value

Type: Boolean
Remarks

If the given file does not exist or cannot be opened, the JPEG compression stream is written to a buffer. Previous JPEG buffers are deleted and a new one is created. The getBuffer method returns this buffer, and getBufferSize returns this buffer size.Since Open Inventor 9.0

See Also