Document Solutions for Imaging
GrapeCity.Documents.Imaging Assembly / GrapeCity.Documents.Drawing Namespace / Image Class / FromStream Method
The input stream.
Indicates if the input stream should be closed when the Image is disposed.
Index of an image frame to read, pass 0 for image formats not supporting multiple frames.

In This Topic
    FromStream Method (Image)
    In This Topic
    Creates an Image from a stream. JPEG, PNG, WEBP, GIF, BMP and TIFF formats are supported.
    Syntax
    'Declaration
     
    Public Shared Function FromStream( _
       ByVal stream As System.IO.Stream, _
       Optional ByVal ownStream As System.Boolean, _
       Optional ByVal frameIndex As System.Integer _
    ) As Image
    public static Image FromStream( 
       System.IO.Stream stream,
       System.bool ownStream,
       System.int frameIndex
    )

    Parameters

    stream
    The input stream.
    ownStream
    Indicates if the input stream should be closed when the Image is disposed.
    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