ESRI.ArcGIS.ADF.Core
ToByteArray Method
See Also  Send comments on this topic.
ESRI.ArcGIS.ADF Namespace > Converter Class : ToByteArray Method




img
Image
format
Format that you would like the image to be when transformed to bytes
Converts a System.Drawing.Image to an array of bytes

Syntax

Visual Basic (Declaration) 
Public Shared Function ToByteArray( _
   ByVal img As Image, _
   ByVal format As ImageFormat _
) As Byte()
Visual Basic (Usage)Copy Code
Dim img As Image
Dim format As ImageFormat
Dim value() As Byte
 
value = Converter.ToByteArray(img, format)
C# 
public static byte[] ToByteArray( 
   Image img,
   ImageFormat format
)

Parameters

img
Image
format
Format that you would like the image to be when transformed to bytes

Return Value

An array of bytes

See Also

© 2010 All Rights Reserved.