'Declaration Public Overloads Function Compress( _
ByVal compressionCompression that should be applied to the image-resource.As Vintasoft.Imaging.Pdf.PdfCompression, _
ByVal compressionSettingsCompression settings.As Vintasoft.Imaging.Pdf.PdfCompressionSettings, _
ByVal scaleXScale factor of X axis.As Double, _
ByVal scaleYScale factor of Y axis.As Double, _
ByVal interpolationModeInterpolation mode that should be used for resampling image.As Vintasoft.Imaging.ImageInterpolationMode, _
ByVal compressOnlyIfSizeReducedA value indicating whether the compression must be applied to the image-resource only if new size of image-resource is less than previous size of image-resource.As Boolean _
) As Boolean
public bool Compress(
Vintasoft.Imaging.Pdf.PdfCompression compression,
Vintasoft.Imaging.Pdf.PdfCompressionSettings compressionSettings,
double scaleX,
double scaleY,
Vintasoft.Imaging.ImageInterpolationMode interpolationMode,
bool compressOnlyIfSizeReduced
)
Parameters
- compression
- Compression that should be applied to the image-resource.
- compressionSettings
- Compression settings.
- scaleX
- Scale factor of X axis.
- scaleY
- Scale factor of Y axis.
- interpolationMode
- Interpolation mode that should be used for resampling image.
- compressOnlyIfSizeReduced
- A value indicating whether the compression must be applied to the image-resource only if new size of image-resource is less than previous size of image-resource.
Return Value
True if compression is applied to the image-resource; otherwise, false.