BogaNet 1.4.0
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
BogaNet.Helper.ImageHelper Class Reference

Helper for images in Avalonia. More...

Static Public Member Functions

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.
 

Detailed Description

Helper for images in Avalonia.

Member Function Documentation

◆ LoadFromResource()

static Bitmap BogaNet.Helper.ImageHelper.LoadFromResource ( string imageResource,
string? resourceAssembly = null )
static

Loads an image from a given resource path.

Parameters
imageResourceResource path of the image
resourceAssemblyAssembly with the resource (optional, default: ResourceAssembly)
Returns
Loaded image as Bitmap
Exceptions
ArgumentNullException

◆ LoadFromUrl()

static Bitmap BogaNet.Helper.ImageHelper.LoadFromUrl ( string imageUrl)
static

Loads an image from a given url.

Parameters
imageUrlURL of the image
Returns
Loaded image as Bitmap
Exceptions
Exception

◆ LoadFromUrlAsync()

static async Task< Bitmap > BogaNet.Helper.ImageHelper.LoadFromUrlAsync ( string imageUrl)
static

Loads an image from a given url asynchronously.

Parameters
imageUrlURL of the image
Returns
Loaded image as Bitmap
Exceptions
Exception

The documentation for this class was generated from the following file: