CPDFOptimizeImageOptions class

Downsampling and compression settings for one class of images.

A separate instance is used for color, grayscale and monochrome images. These settings only take effect when CPDFOptimizeFlag.compressImages is part of CPDFOptimizeOptions.flags.

Constructors

CPDFOptimizeImageOptions({required int upperPpi, required int targetPpi, required int quality, required int blockSize, CPDFCompressAlgorithm compressAlgorithm = CPDFCompressAlgorithm.none})
const
CPDFOptimizeImageOptions.fromJson(Map json)
factory

Properties

blockSize → int
Block size used by the encoder. Must be positive.
final
compressAlgorithm → CPDFCompressAlgorithm
The algorithm used to re-encode the images.
final
hashCode → int
The hash code for this object.
no setterinherited
quality → int
Compression quality, from 0 to 100. Lower means smaller and lossier.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
targetPpi → int
The resolution images are downsampled to. Must be positive.
final
upperPpi → int
Images above this resolution are downsampled. Must be positive.
final

Methods

copyWith({int? upperPpi, int? targetPpi, int? quality, int? blockSize, CPDFCompressAlgorithm? compressAlgorithm}) → CPDFOptimizeImageOptions
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited