Note: This API documentation is for FAKE version 4. The migration API documentation can be found here. The API documentation for the new fake 5 modules can be found here

ImageUri

Represents the URI to an image (either a normal URI or a DataUri)

Union Cases

Union CaseDescription
DataUri(string)
Signature: string

A Data uri of the image encoded as Base64 data

ImageUrl(Uri)
Signature: Uri

A simple URI of the image

Instance members

Instance memberDescription
x.WriteJson(writer)
Signature: writer:JsonWriter -> JsonWriter

Writes the image uri to a JSON writer

Static members

Static memberDescription
ImageUri.FromFile(fileName)
Signature: fileName:string -> ImageUri option

Creates a new DataUri from a given file png, gif, jpg and bmp files are supported

ImageUri.FromUrl(url)
Signature: url:string -> ImageUri

Creates a new ImageUrl from a given url string