[]
Loads the image from a System.IO.Stream. JPEG, PNG, GIF, BMP, TIFF, ICO, JPEG XR formats are supported.
public void Load(Stream stream, params BaseTransform[] transforms)
Public Sub Load(stream As Stream, ParamArray transforms As BaseTransform())
Type | Name | Description |
---|---|---|
Stream | stream | The input stream. |
BaseTransform[] | transforms | The transformation chain for the image that is being loaded. |
Loads the image from a System.IO.Stream. JPEG, PNG, GIF, BMP, TIFF, ICO, JPEG XR formats are supported.
public void Load(Stream stream, WicContainerFormat containerFormat, int frameIndex, Rectangle? imageRect, params BaseTransform[] transforms)
Public Sub Load(stream As Stream, containerFormat As WicContainerFormat, frameIndex As Integer, imageRect As Rectangle?, ParamArray transforms As BaseTransform())
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. |
Rectangle? | imageRect | Clipping rectangle for the image after all transformations. |
BaseTransform[] | transforms | The transformation chain for the image that is being loaded. |
Loads the image from a file. JPEG, PNG, GIF, BMP, TIFF, ICO, JPEG XR formats are supported.
public void Load(string path, params BaseTransform[] transforms)
Public Sub Load(path As String, ParamArray transforms As BaseTransform())
Type | Name | Description |
---|---|---|
string | path | The file path to the image. |
BaseTransform[] | transforms | The transformation chain for the image that is being loaded. |
Loads the image from a file. JPEG, PNG, GIF, BMP, TIFF, ICO, JPEG XR formats are supported.
public void Load(string path, WicContainerFormat containerFormat, int frameIndex, Rectangle? imageRect, params BaseTransform[] transforms)
Public Sub Load(path As String, containerFormat As WicContainerFormat, frameIndex As Integer, imageRect As Rectangle?, ParamArray transforms As BaseTransform())
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. |
Rectangle? | imageRect | Clipping rectangle for the image after all transformations. |
BaseTransform[] | transforms | The transformation chain for the image that is being loaded. |