CodeCarvings.Piczard
SaveImageToByteArray Method
See Also  Send Feedback
CodeCarvings.Piczard.Plugins.Foundation Namespace > BuiltinImageArchiver Class : 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)  
Public Shared Function SaveImageToByteArray( _
   ByVal image As Image, _
   ByVal formatEncoderParams As FormatEncoderParams _
) As Byte()
C#  
public static byte[] SaveImageToByteArray( 
   Image image,
   FormatEncoderParams formatEncoderParams
)

Parameters

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

Return Value

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.