Skip to content

ElectronNativeImage.toDataURL method

ElectronNativeImage › toDataURL

Unofficial

Returns the data URL of the image.

Signature:

toDataURL(options?: ElectronNativeImageScaleFactorOptions): string

Parameters:

ParameterTypeDescription
options?ElectronNativeImageScaleFactorOptionsOptions for the conversion including scaleFactor.

Returns: string — The data URL string.