VintaSoft Imaging .NET SDK 15.1: Documentation for .NET developer
Vintasoft.Imaging.Pdf.Tree Namespace / PdfImageResource Class / Compress Methods / Compress(PdfCompression,PdfCompressionSettings,Double,Double,ImageInterpolationMode,Boolean) Method
Syntax Requirements SeeAlso
In This Topic
Compress(PdfCompression,PdfCompressionSettings,Double,Double,ImageInterpolationMode,Boolean) Method (PdfImageResource)
In This Topic
Compress the image-resource.
Syntax
'Declaration

Public Overloads Function Compress( _
ByVal compression
Compression that should be applied to the image-resource.
As Vintasoft.Imaging.Pdf.PdfCompression, _
ByVal compressionSettings
Compression settings.
As Vintasoft.Imaging.Pdf.PdfCompressionSettings, _
ByVal scaleX
Scale factor of X axis.
As Double, _
ByVal scaleY
Scale factor of Y axis.
As Double, _
ByVal interpolationMode
Interpolation mode that should be used for resampling image.
As Vintasoft.Imaging.ImageInterpolationMode, _
ByVal 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.
As Boolean _
) As Boolean

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.
Requirements

Target Platforms: .NET 10; .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

See Also