CodeCarvings.Piczard
SaveProcessedImageToByteArray(Object,FormatEncoderParams) Method
See Also  Send Feedback
CodeCarvings.Piczard.Web Namespace > PictureTrimmer Class > SaveProcessedImageToByteArray Method : SaveProcessedImageToByteArray(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.
formatEncoderParams
A FormatEncoderParams object containing the image format parameters.
Applies the current PictureTrimmerValue filter to the specified image and saves the result Bitmap to a byte array, using the provided FormatEncoderParams.

Syntax

Visual Basic (Declaration)  
Public Overloads Function SaveProcessedImageToByteArray( _
   ByVal source As Object, _
   ByVal formatEncoderParams As FormatEncoderParams _
) As Byte()
C#  
public byte[] SaveProcessedImageToByteArray( 
   object source,
   FormatEncoderParams formatEncoderParams
)

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.
formatEncoderParams
A FormatEncoderParams object containing the image format parameters.

Return Value

The processed image saved as array of bytes.

Requirements

Platforms: Windows 8, Windows 7, Windows Vista, Windows XP Professional, Windows 2000 - Windows Server family: 2012, 2008.R2, 2008, 2003, 2000

See Also

©2013 Sergio Turolla. All Rights Reserved.