Show / Hide Table of Contents

Class Optimizer.MonoImageSettings

A class that stores image downsampling/recompression settings for monochrome images.

Inheritance
System.Object
Optimizer.MonoImageSettings
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: pdftron.PDF
Assembly: PDFNetiOS.dll
Syntax
public class MonoImageSettings

Constructors

MonoImageSettings()

create an MonoImageSettings object with default options

Declaration
public MonoImageSettings()

Methods

ForceChanges(Boolean)

Sets whether image changes that grow the PDF file should be kept. This is off by default.

Declaration
public void ForceChanges(bool force)
Parameters
Type Name Description
System.Boolean force

if true all image changes will be kept.

ForceRecompression(Boolean)

Declaration
public void ForceRecompression(bool force)
Parameters
Type Name Description
System.Boolean force

SetCompressionMode(Optimizer.MonoImageSettings.CompressionMode)

Sets the output compression mode for monochrome images The default value is e_ccitt (CCITT group 4 compression)

Declaration
public void SetCompressionMode(Optimizer.MonoImageSettings.CompressionMode mode)
Parameters
Type Name Description
Optimizer.MonoImageSettings.CompressionMode mode

the compression mode to set

SetDownsampleMode(Optimizer.MonoImageSettings.DownsampleMode)

Sets the downsample mode for monochrome images The default value is e_default

Declaration
public void SetDownsampleMode(Optimizer.MonoImageSettings.DownsampleMode mode)
Parameters
Type Name Description
Optimizer.MonoImageSettings.DownsampleMode mode

the compression mode to set

SetImageDPI(Double, Double)

Sets the maximum and resampling dpi for monochrome images. By default these are set to 144 and 96 respectively.

Declaration
public void SetImageDPI(double maximum, double resampling)
Parameters
Type Name Description
System.Double maximum

the highest dpi of an image before it will be resampled

System.Double resampling

the image dpi to resample to if an image is encountered over the maximum dpi

SetJBIG2Threshold(Double)

Sets the quality for lossy JBIG2Decode compression mode. The threshold is a floating point number in the range from 4 to 9 The default value for JBIG2 is 8.5. The setting is ignored for FLATE.

Declaration
public void SetJBIG2Threshold(double jbig2_threshold)
Parameters
Type Name Description
System.Double jbig2_threshold

The jbig2 threshold value

In This Article
Back to top Generated by DocFX