Class ImageLocation
Helper functions that return the address of an image given a base url address
Inherited Members
Namespace: LemonEdge.Client.Core.Images
Assembly: LemonEdge.Utils.dll
Syntax
public static class ImageLocation
Methods
GetImageUri(ImageType, string)
Returns the address of the specified image.
Declaration
public static string GetImageUri(this ImageType img, string imageBaseLocation)
Parameters
Type | Name | Description |
---|---|---|
ImageType | img | The image to return the location for |
string | imageBaseLocation | The base location of all system images |
Returns
Type | Description |
---|---|
string | The address of the specified image |
GetImageUri(Guid, string)
Returns the address of the specified image. If the image is outside the ImageType range then the standard Warning image is returned instead of any custom image as that doesn't belong at a path location
Declaration
public static string GetImageUri(this Guid imgID, string imageBaseLocation)
Parameters
Type | Name | Description |
---|---|---|
Guid | imgID | The guid of the image to return the location for |
string | imageBaseLocation | The base location of all system images |
Returns
Type | Description |
---|---|
string | The address of the specified image |