Document Solutions for PDF
DS.Documents.Pdf Assembly / GrapeCity.Documents.Pdf Namespace / ImageOptions Class
Properties Methods

In This Topic
    ImageOptions Class Members
    In This Topic

    The following tables list the members exposed by ImageOptions.

    Public Constructors
     NameDescription
    Public Constructor  
    Top
    Public Properties
     NameDescription
    Public PropertyGets or sets the alpha threshold value. If all pixels of an image with the alpha channel have alpha values greater than or equal to this value, the alpha channel will not be saved, thus making the image and the whole PDF smaller. The default is 0xFF (i.e. all transparency is preserved). This property is ignored if SaveAllImagesAsJpeg is true.  
    Public PropertyGets or sets a value indicating whether to apply a slight compression to color values. Unlike JPEG, this preserves transparency while still reducing the image size. The default is false.  
    Public PropertyGets or sets the format to use when saving images. This property does not affect images added as RawImage.

    The default is ImageOptions.ImageFormat.Auto.

     
    Public PropertyGets or sets the JPEG image quality, in percent. This value must be between 0 (lowest quality, maximum compression) to 100 (highest quality, no compression). The default is 75.  
    Public PropertyGets or sets a value indicating whether all images should be converted to JPEG format when added to the PDF. The default is false. Note that any transparency (if present in the original image) is lost if this property is set to true. This property does not affect images added as RawImage.  
    Top
    Public Methods
     NameDescription
    Public MethodCopies all property values from another object.  
    Public MethodResets all properties to their default values.  
    Top
    See Also