docs: clarified usage of createFromPath() (#46899)
* docs: clarified usage of createFromPath() Co-authored-by: Yuri <rarescrap@gmail.com> * Update docs/api/native-image.md Co-authored-by: Niklas Wenzel <dev@nikwen.de> Co-authored-by: Yuri <rarescrap@gmail.com> --------- Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Yuri <rarescrap@gmail.com>
This commit is contained in:
parent
17e1ff2675
commit
bb4ab67e52
1 changed files with 2 additions and 2 deletions
|
@ -142,8 +142,8 @@ Note: The Windows implementation will ignore `size.height` and scale the height
|
|||
|
||||
Returns `NativeImage`
|
||||
|
||||
Creates a new `NativeImage` 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
|
||||
Creates a new `NativeImage` instance from an image file (e.g., PNG or JPEG) located at `path`.
|
||||
This method returns an empty image if the `path` does not exist, cannot be read, or is not
|
||||
a valid image.
|
||||
|
||||
```js
|
||||
|
|
Loading…
Add table
Reference in a new issue