Document Solutions for PDF
GrapeCity.Documents.Imaging Assembly / GrapeCity.Documents.Drawing Namespace / Image Class / FromBytes Method
The image data.
Index of an image frame to read, pass 0 for image formats not supporting multiple frames.

In This Topic
    FromBytes Method (Image)
    In This Topic
    Creates an Image from a byte array. JPEG, PNG, WEBP, GIF, BMP and TIFF formats are supported.
    Syntax
    'Declaration
     
    Public Shared Function FromBytes( _
       ByVal bytes() As System.Byte, _
       Optional ByVal frameIndex As System.Integer _
    ) As Image
    public static Image FromBytes( 
       System.byte[] bytes,
       System.int frameIndex
    )

    Parameters

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

    Return Value

    The newly created Image object.
    See Also