[]
Loads the image from a stream.
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)
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. |
Loads the image from a file.
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)
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. |