[]
        
(Showing Draft Content)

GrapeCity.Documents.Drawing.Image.FromBytes

FromBytes Method

FromBytes(byte[], int)

Creates an Image from a byte array. JPEG, PNG, WEBP, GIF, BMP and TIFF formats are supported.

Declaration
public static Image FromBytes(byte[] bytes, int frameIndex = 0)
Public Shared Function FromBytes(bytes As Byte(), Optional frameIndex As Integer = 0) As Image
Parameters
Type Name Description
byte[] bytes

The image data.

int frameIndex

Index of an image frame to read, pass 0 for image formats not supporting multiple frames.

Returns
Type Description
Image

The newly created Image object.