ElectronNativeImageModule.createFromPath method
ElectronNativeImageModule › createFromPath
Unofficial
Creates a newNativeImage instance from a file located at path. This method returns an empty image if the path does not exist, cannot be read, or is not a valid image. Signature:
createFromPath(path: string): ElectronNativeImageParameters:
| Parameter | Type | Description |
|---|---|---|
| path | string | The path to the image file. |
Returns: ElectronNativeImage — The created image.