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+ce90b2cf6b782b8d7b7fd47b3c546987c652c00f
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