ImageCompressionOptions Class
Class contains set options for image compression.
Inheritance Hierarchy
SystemObject
  Aspose.Pdf.OptimizationImageCompressionOptions

Namespace: Aspose.Pdf.Optimization
Assembly: Aspose.PDF (in Aspose.PDF.dll) Version: 19.9
Syntax
public class ImageCompressionOptions

The ImageCompressionOptions type exposes the following members.

Constructors
  NameDescription
Public methodImageCompressionOptions
Initializes a new instance of the ImageCompressionOptions class
Properties
  NameDescription
Public propertyCompressImages
If this flag is set to true images will be compressed in the document. compression level is specfied with ImageQuality property.
Public propertyEncoding
Gets or sets encoding used to store images.
Public propertyImageQuality
Specifies level of image compression when CompressIamges flag is used.
Public propertyMaxResolution
Specifies maximum resolution of images. If image has higher resolition it will be scaled
Public propertyResizeImages
If this flag set to true and CompressImages is true images will be resized if image resoultion is greater then specified MaxResolution parameter.
Public propertyVersion
Version of compression algorithm. Possible values are: 1. standard compression, 2. fast (improved compression which is faster then standard but may be applicable not for all images), 3. mixed (standard compression is applied to images which can not be compressed by faster algorithm, this may give best compression but more slow then "fast" algorithm. Version "Fast" is not applicable for resizing images (standard method will be used). Default is "Standard".
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
See Also