ESRI.ArcGIS.ADF.Core | |
ToByteArray Method | |
See Also Send Feedback |
ESRI.ArcGIS.ADF Namespace > Converter Class : ToByteArray Method |
- format
- Format that you would like the image to be when transformed to bytes
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
- System.Drawing.Image
- format
- Format that you would like the image to be when transformed to bytes
Return Value
An array of bytesTarget Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family