downloadImage

Downloads an image from the prnt.sc server.

bool
downloadImage
(
const string url
,
const string imagePath
,
const Duration requestTimeout
)

Parameters

url string

HTTP URL to fetch.

imagePath string

Filename to save the downloaded image to.

requestTimeout Duration

Timeout to use when downloading.

Return Value

Type: bool

true if a file was successfully downloaded (including passing the size check); false if not.

Meta