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.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
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