CodeCarvings.Piczard
GetProcessedImage(Object,FormatEncoderParams) Method
See Also  Send Feedback
CodeCarvings.Piczard.Web Namespace > PictureTrimmer Class > GetProcessedImage Method : GetProcessedImage(Object,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.
hintFormatEncoderParams
A FormatEncoderParams object used to guess the right BackgroundColor and quantization mode to apply to the output image.
Applies the current PictureTrimmerValue filter to the specified image and returns the result as a Bitmap object.
BackgroundColor and quantization are applied according to the specified FormatEncoderParams.

Syntax

Visual Basic (Declaration)  
Public Overloads Function GetProcessedImage( _
   ByVal source As Object, _
   ByVal hintFormatEncoderParams As FormatEncoderParams _
) As Bitmap
C#  
public Bitmap GetProcessedImage( 
   object source,
   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.
hintFormatEncoderParams
A FormatEncoderParams object used to guess the right BackgroundColor and quantization mode to apply to the output image.

Return Value

The processed image.

Requirements

Requires Piczard 1.2.x or higher.

See Also

©2013 Sergio Turolla. All Rights Reserved.