Click or drag to resize
SoJpegDataCompressor Class

Jpeg data compression.

Inheritance Hierarchy
SystemObject
  OIV.InventorSoNetBase
    OIV.LDM.CompressorsSoDataCompressor
      OIV.LDM.CompressorsSoJpegDataCompressor

Namespace: OIV.LDM.Compressors
Assembly: OIV.LDM (in OIV.LDM.dll) Version: 10.12.3.0 (10.12.3.0)
Syntax
public class SoJpegDataCompressor : SoDataCompressor

The SoJpegDataCompressor type exposes the following members.

Constructors
  NameDescription
Public methodSoJpegDataCompressor

Constructor.

Top
Methods
  NameDescription
Public methodAllocateCompressedBuffer

Allocates the internal buffer to hold the compressed data.

(Inherited from SoDataCompressor.)
Public methodCompress

Compresses the given buffer into the internal buffer.

(Inherited from SoDataCompressor.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetCompressedBuffer

Returns the compressed data.

(Inherited from SoDataCompressor.)
Public methodGetCompressionFormatName

Returns the name of the compression algorithm used by this class.

(Inherited from SoDataCompressor.)
Public methodGetCompressionLevel

Returns the compression level.

(Inherited from SoDataCompressor.)
Public methodGetHashCode
Overrides GetHashCode().
(Inherited from SoNetBase.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsLossless

Returns true if the compression algorithm is lossless.

(Inherited from SoDataCompressor.)
Public methodSetCompressionLevel

Sets the compression level.

(Inherited from SoDataCompressor.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUncompress

Uncompresses data from the internal buffer to the given buffer.

(Inherited from SoDataCompressor.)
Top
Remarks

This class implements a compression scheme based on libjpeg. It is a lossy compression.

The setCompressionLevel method (OIV.LDM.Compressors.SoDataCompressor or OIV.LDM.Converters.SoConverterParameters) accepts values between 0 and 100. 0 gives best compression but most loss of data. 100 gives minimum compression and minimum data alteration. Default is 85.

Limitations:

  • JPEG compression can only be used on 8-bit data sets.

See Also