Skip to content

ElectronNativeImage.toDataURL method

ElectronNativeImage › toDataURL

Unofficial

Returns the data URL of the image.

Signature:

toDataURL(options?: ElectronNativeImageScaleFactorOptions | undefined): string

Parameters:

Parameter Type Description
options? ElectronNativeImageScaleFactorOptions | undefined Options for the conversion including scaleFactor.

Returns: stringThe data URL string.