mirror of
https://github.com/electron/electron.git
synced 2026-01-08 23:18:06 -05:00
Document new nativeImage.createFromNamedImage method
This commit is contained in:
@@ -157,6 +157,16 @@ Returns `NativeImage`
|
||||
|
||||
Creates a new `NativeImage` instance from `dataURL`.
|
||||
|
||||
### `nativeImage.createFromNamedImage(imageName)` _macOS_
|
||||
|
||||
* `imageName` String
|
||||
|
||||
Returns `NativeImage`
|
||||
|
||||
Creates a new `NativeImage` instance from the NSImage that maps to the
|
||||
given image name. See [`NSImageName`](https://developer.apple.com/documentation/appkit/nsimagename?language=objc)
|
||||
for a list of possible values.
|
||||
|
||||
## Class: NativeImage
|
||||
|
||||
> Natively wrap images such as tray, dock, and application icons.
|
||||
|
||||
Reference in New Issue
Block a user