Helper for images in Avalonia.
More...
|
static Bitmap | LoadFromResource (string imageResource, string? resourceAssembly=null) |
| Loads an image from a given resource path.
|
|
static Bitmap | LoadFromUrl (string imageUrl) |
| Loads an image from a given url.
|
|
static async Task< Bitmap > | LoadFromUrlAsync (string imageUrl) |
| Loads an image from a given url asynchronously.
|
|
Helper for images in Avalonia.
◆ LoadFromResource()
static Bitmap BogaNet.Helper.ImageHelper.LoadFromResource |
( |
string | imageResource, |
|
|
string? | resourceAssembly = null ) |
|
static |
Loads an image from a given resource path.
- Parameters
-
imageResource | Resource path of the image |
resourceAssembly | Assembly with the resource (optional, default: ResourceAssembly) |
- Returns
- Loaded image as Bitmap
- Exceptions
-
◆ LoadFromUrl()
static Bitmap BogaNet.Helper.ImageHelper.LoadFromUrl |
( |
string | imageUrl | ) |
|
|
static |
Loads an image from a given url.
- Parameters
-
- Returns
- Loaded image as Bitmap
- Exceptions
-
◆ LoadFromUrlAsync()
static async Task< Bitmap > BogaNet.Helper.ImageHelper.LoadFromUrlAsync |
( |
string | imageUrl | ) |
|
|
static |
Loads an image from a given url asynchronously.
- Parameters
-
- Returns
- Loaded image as Bitmap
- Exceptions
-
The documentation for this class was generated from the following file:
- /Users/stefanlaubenberger/Projects/CSharp/BogaNet/BogaNet.Avalonia/Helper/ImageHelper.cs