Document Solutions for Imaging
GrapeCity.Documents.Imaging Assembly / GrapeCity.Documents.Drawing Namespace / Image Class / FromFile Method
The file path to the image.
Specifies how the image data is attached to the Image object.
Index of an image frame to read, pass 0 for image formats not supporting multiple frames.

In This Topic
    FromFile Method (Image)
    In This Topic
    Creates an Image from a file. JPEG, PNG, WEBP, GIF, BMP and TIFF formats are supported.
    Syntax
    'Declaration
     
    Public Shared Function FromFile( _
       ByVal path As System.String, _
       Optional ByVal binding As ImageBinding, _
       Optional ByVal frameIndex As System.Integer _
    ) As Image
    public static Image FromFile( 
       System.string path,
       ImageBinding binding,
       System.int frameIndex
    )

    Parameters

    path
    The file path to the image.
    binding
    Specifies how the image data is attached to the Image object.
    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