CodeCarvings.Piczard
GetProcessedImage(Object,Single,FormatEncoderParams) Method
See Also  Send Feedback
CodeCarvings.Piczard Namespace > ImageProcessingFilter Class > GetProcessedImage Method : GetProcessedImage(Object,Single,FormatEncoderParams) Method

source
The source image to process. Can be: a string (file path), a Stream, an array of bytes containing the image data, an Image object or a LoadedImage object.
outputResolution
The output resolution (DPI) used to process the image.
hintFormatEncoderParams
A FormatEncoderParams object used to guess the right BackgroundColor and quantization mode to apply to the output image.
Applies the current ImageProcessingFilter to the specified image and returns the result as a Bitmap object; the specified output resolution (DPI) is used.
BackgroundColor and quantization are applied according to the specified FormatEncoderParams.

Syntax

Visual Basic (Declaration)  
Public Overloads Overridable Function GetProcessedImage( _
   ByVal source As Object, _
   ByVal outputResolution As Single, _
   ByVal hintFormatEncoderParams As FormatEncoderParams _
) As Bitmap
C#  
public virtual Bitmap GetProcessedImage( 
   object source,
   float outputResolution,
   FormatEncoderParams hintFormatEncoderParams
)

Parameters

source
The source image to process. Can be: a string (file path), a Stream, an array of bytes containing the image data, an Image object or a LoadedImage object.
outputResolution
The output resolution (DPI) used to process the image.
hintFormatEncoderParams
A FormatEncoderParams object used to guess the right BackgroundColor and quantization mode to apply to the output image.

Return Value

The image processed by the current ImageProcessingFilter.

Requirements

Requires Piczard 1.2.x or higher.

See Also

©2013 Sergio Turolla. All Rights Reserved.