ElectronNativeImage.addRepresentation method
ElectronNativeImage › addRepresentation
Unofficial
Adds an image representation for a specific scale factor. This can be used to explicitly add different scale factor representations to an image. This can be called on empty images.Signature:
addRepresentation(options: ElectronAddRepresentationOptions): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| options | ElectronAddRepresentationOptions | The image representation to add, including scaleFactor and either a buffer or dataURL. |
Returns: void