Click or drag to resize
SoConverterParametersSetCompressionLevel Method

Set compression level.

Namespace: OIV.LDM.Converters
Assembly: OIV.LDM (in OIV.LDM.dll) Version: 10.12.3.0 (10.12.3.0)
Syntax
public void SetCompressionLevel(
	int compressionLevel
)

Parameters

compressionLevel
Type: SystemInt32
Remarks

Like the -l command line argument. See also OIV.LDM.Converters.SoConverterParameters.SetCompressionName(System.String). The meaning of this parameter depends on the type of compression used:

  • gzip Level must be between 0 and 9: 0 gives no compression, 9 gives best compression but slower speed. Default is 3.

  • jpeg: Level must be between 0 and 100: 0 gives best compression but most loss of data, 100 gives minimum compression and minimum data alteration. Default is 85.

  • jp3d: A level of 0 specifies the lossless mode, and any other value sets the target PSNR (Peak Signal to Noise Ratio). Typical values for PSNR are: 70dB for near lossless mode, and 40dB for visually lossless mode.

See Also