ModelFactoryGenerateImageReference Method

Generates an image reference, usually because of an image derived from the Azure Blob Storage or because the user uploaded an image.

Definition

Namespace: MobileTrack.Common.Extensions
Assembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
public static ImageReference GenerateImageReference(
	string? imagePath,
	Point size
)

Parameters

imagePath  String
Oath of the image (optional)
size  Point
Size of the image (optional, one can use Empty to have the size be based on the dimensions of the image itself)

Return Value

ImageReference
Generated image reference

Exceptions

ArgumentExceptionThrown if imagePath is whitespace. is allowed though!

See Also