CodeCarvings.Piczard
SaveImageToByteArray Method
See Also  Send Feedback
CodeCarvings.Piczard.Plugins Namespace > IImageArchiverPlugin Interface : SaveImageToByteArray Method

image
The Image to save.
formatEncoderParams
A FormatEncoderParams object containing the image format parameters.
Saves an Image to a byte array, using the specified FormatEncoderParams.

Syntax

Visual Basic (Declaration)  
Function SaveImageToByteArray( _
   ByVal image As Image, _
   ByVal formatEncoderParams As FormatEncoderParams _
) As PluginOperationResult(Of Byte)
C#  
PluginOperationResult<byte> SaveImageToByteArray( 
   Image image,
   FormatEncoderParams formatEncoderParams
)

Parameters

image
The Image to save.
formatEncoderParams
A FormatEncoderParams object containing the image format parameters.

Return Value

A PluginOperationResult<byte[]> that indicates if the Plugin has handled the request.
In case of success (Handled=true) the Value property contains the 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.