Returns Buffer - A Buffer that contains the image's PNG encoded data. scaleFactor Double (optional) - Defaults to 1.0.The following methods are available on instances of the NativeImage class: image.toPNG() It is only available as a return value of other methods in the Electron API. This class is not exported from the 'electron' module. Natively wrap images such as tray, dock, and application icons. Where SYSTEM_IMAGE_NAME should be replaced with any value from this list. Image file path as a String: const ' | clang -otest -x objective-c -framework Cocoa - &. ![]() An empty image will be used when null is passed.įor example, when creating a tray or setting a window's icon, you can pass an In Electron, for the APIs that take images, you can pass either file paths or Create tray, dock, and application icons using PNG or JPG files.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |