[]
Loads the image from a stream. JPEG, PNG, WEBP formats are supported.
public void Load(Stream stream, Rectangle? clipRect = null)
Public Sub Load(stream As Stream, Optional clipRect As Rectangle? = Nothing)
Type | Name | Description |
---|---|---|
Stream | stream | The source stream. |
Rectangle? | clipRect | Clipping rectangle of the image to be loaded. |
Loads the image from a file. JPEG, PNG, WEBP formats are supported.
public void Load(string filePath, Rectangle? clipRect = null)
Public Sub Load(filePath As String, Optional clipRect As Rectangle? = Nothing)
Type | Name | Description |
---|---|---|
string | filePath | The file path to the image. |
Rectangle? | clipRect | Clipping rectangle of the image to be loaded. |