[]
        
(Showing Draft Content)

GrapeCity.Documents.Imaging.Windows.GcD2DBitmap.Load

Load Method

Load(Stream, WicContainerFormat, int)

Loads the image from a stream.

Declaration
public void Load(Stream stream, WicContainerFormat containerFormat = WicContainerFormat.Unknown, int frameIndex = 0)
Public Sub Load(stream As Stream, Optional containerFormat As WicContainerFormat = WicContainerFormat.Unknown, Optional frameIndex As Integer = 0)
Parameters
Type Name Description
Stream stream

The input stream.

WicContainerFormat containerFormat

The image container format; use Unknown to detect the format automatically.

int frameIndex

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

Load(string, WicContainerFormat, int)

Loads the image from a file.

Declaration
public void Load(string path, WicContainerFormat containerFormat = WicContainerFormat.Unknown, int frameIndex = 0)
Public Sub Load(path As String, Optional containerFormat As WicContainerFormat = WicContainerFormat.Unknown, Optional frameIndex As Integer = 0)
Parameters
Type Name Description
string path

The file path to the image.

WicContainerFormat containerFormat

The image container format; use Unknown to detect the format automatically.

int frameIndex

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