Accusoft.ImagXpress13.Net
PngReduce(ImagXpress,String,String) 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 PNG file.
The name of the output PNG file.
Compress a PNG to optimal size while maintaining lossless fidelity to the input image. The reduction is achieved by removing select pieces of metadata and other possible color and/or transparency reductions.
Syntax
'Declaration
 
Public Overloads Shared Sub PngReduce( _
   ByVal imagXpress As ImagXpress, _
   ByVal inputFileName As String, _
   ByVal outputFileName As String _
) 
'Usage
 
Dim imagXpress As ImagXpress
Dim inputFileName As String
Dim outputFileName As String
 
ImageReduce.PngReduce(imagXpress, inputFileName, outputFileName)
public static void PngReduce( 
   ImagXpress imagXpress,
   string inputFileName,
   string outputFileName
)
public: static void PngReduce( 
   ImagXpress* imagXpress,
   string* inputFileName,
   string* outputFileName
) 
public:
static void PngReduce( 
   ImagXpress^ imagXpress,
   String^ inputFileName,
   String^ outputFileName
) 

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 PNG file.
outputFileName
The name of the output PNG file.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionThrown when imagXpress is null.
System.ArgumentNullExceptionThrown when inputFileName is null.
System.ArgumentNullExceptionThrown when outputFileName is null.
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 PNG.
System.UnauthorizedAccessExceptionThrown when outputFileName cannot be created or modified.
See Also

Reference

ImageReduce Class
ImageReduce Members
Overload List

 

 


©2019. Accusoft Corporation. All Rights Reserved.

Send Feedback