Accusoft.ImagXpress13.Net
JpegReduce(ImagXpress,String,String,Int32,TransformMode) Method




An instance of the ImagXpress workspace component. This is the main ImagXpress component that typically must be dragged onto a form first.
The name of the input JPEG file.
The name of the output JPEG file.
The quality factor of the compression improvement.

Note: The default value is 22 for strong compression improvement while maintaining very good quality. The range is from 0-32, where 0 represents almost no compression improvement and 32 represents the most compression improvement with some quality loss.

The transform mode for the reduce operation.

Note: The default value is TransformMode.None.

When transformMode is TransformMode.None the output JPEG format will match the input JPEG format.

When transformMode is TransformMode.ToProgressiveJpeg, the output JPEG format will be progressive JPEG. Note: Transforming Sequential to Progressive may result in a small increase in size.

When transformMode is TransformMode.ToSequentialJpeg, the output JPEG format will be sequential JPEG. Note: Transforming Progressive to Sequential may result in a small increase in size.

This function requantizes a JPEG to compress its size without requiring decompression followed by recompression.
Syntax
'Declaration
 
Public Overloads Shared Sub JpegReduce( _
   ByVal imagXpress As ImagXpress, _
   ByVal inputFileName As String, _
   ByVal outputFileName As String, _
   Optional ByVal qualityFactor As Integer, _
   Optional ByVal transformMode As TransformMode _
) 
'Usage
 
Dim imagXpress As ImagXpress
Dim inputFileName As String
Dim outputFileName As String
Dim qualityFactor As Integer
Dim transformMode As TransformMode
 
ImageReduce.JpegReduce(imagXpress, inputFileName, outputFileName, qualityFactor, transformMode)
public static void JpegReduce( 
   ImagXpress imagXpress,
   string inputFileName,
   string outputFileName,
   int qualityFactor,
   TransformMode transformMode
)
public: static void JpegReduce( 
   ImagXpress* imagXpress,
   string* inputFileName,
   string* outputFileName,
   int qualityFactor,
   TransformMode transformMode
) 
public:
static void JpegReduce( 
   ImagXpress^ imagXpress,
   String^ inputFileName,
   String^ outputFileName,
   int qualityFactor,
   TransformMode transformMode
) 

Parameters

imagXpress
An instance of the ImagXpress workspace component. This is the main ImagXpress component that typically must be dragged onto a form first.
inputFileName
The name of the input JPEG file.
outputFileName
The name of the output JPEG file.
qualityFactor
The quality factor of the compression improvement.

Note: The default value is 22 for strong compression improvement while maintaining very good quality. The range is from 0-32, where 0 represents almost no compression improvement and 32 represents the most compression improvement with some quality loss.

transformMode
The transform mode for the reduce operation.

Note: The default value is TransformMode.None.

When transformMode is TransformMode.None the output JPEG format will match the input JPEG format.

When transformMode is TransformMode.ToProgressiveJpeg, the output JPEG format will be progressive JPEG. Note: Transforming Sequential to Progressive may result in a small increase in size.

When transformMode is TransformMode.ToSequentialJpeg, the output JPEG format will be sequential JPEG. Note: Transforming Progressive to Sequential may result in a small increase in size.

Exceptions
ExceptionDescription
System.ArgumentNullExceptionThrown when imagXpress is null.
System.ArgumentNullExceptionThrown when inputFileName is null.
System.ArgumentNullExceptionThrown when outputFileName is null.
System.ArgumentOutOfRangeExceptionThrown when qualityFactor is outside range [0, 32].
System.IO.FileNotFoundExceptionThrown when inputFileName does not exist.
System.ArgumentExceptionThrown when inputFileName is an HTTP or FTP URL.
System.ArgumentExceptionThrown when outputFileName is an HTTP or FTP URL.
ImagXpressExceptionThrown when imagXpress is not licensed for this feature.
ImagXpressExceptionThrown when inputFileName refers to a damaged or incomplete JPEG.
ImagXpressExceptionThrown when inputFileName does not refer to a 8-bit grayscale or 24-bit color JPEG.
System.UnauthorizedAccessExceptionThrown when outputFileName cannot be created or modified.
Remarks

Note: Supports reading 8-bit grayscale and 24-bit color JPEGs.

See Also

Reference

ImageReduce Class
ImageReduce Members
Overload List

 

 


©2018. Accusoft Corporation. All Rights Reserved.

Send Feedback