Converts the specified byte array to an image.

Namespace: System.Extensions.Drawing
Assembly: System.Extensions (in System.Extensions.dll) Version: 0.0.0.5 (0.0.0.5)

Syntax

C#
public static Image FromByteArray(
	byte[] buffer
)
Visual Basic
Public Shared Function FromByteArray ( 
	buffer As Byte()
) As Image
Visual C++
public:
static Image^ FromByteArray(
	array<unsigned char>^ buffer
)
F#
static member FromByteArray : 
        buffer : byte[] -> Image 

Parameters

buffer
Type: array<System..::..Byte>[]()[][]
The byte array representation of the image.

Return Value

Type: Image
The Image that was loaded from the byte array.

See Also