Update renamed nativeImage APIs

This commit is contained in:
Kevin Sawicki 2016-06-29 11:22:50 -07:00
parent 90ea0a365c
commit 90048abd0a
3 changed files with 6 additions and 6 deletions

View file

@ -112,11 +112,11 @@ const nativeImage = require('electron').nativeImage;
var image = nativeImage.createFromPath('/Users/somebody/images/icon.png');
```
### `image.toPng()`
### `image.toPNG()`
`PNG`エンコードされた画像を含む[Buffer][buffer]を返します。
### `image.toJpeg(quality)`
### `image.toJPEG(quality)`
* `quality` Integer (**required**) - Between 0 - 100.

View file

@ -125,11 +125,11 @@ let image = nativeImage.createFromPath('/Users/somebody/images/icon.png');
`nativeImage` 인스턴스 객체에서 사용할 수 있는 메서드입니다.
### `image.toPng()`
### `image.toPNG()`
`PNG` 이미지를 인코딩한 데이터를 [Buffer][buffer]로 반환합니다.
### `image.toJpeg(quality)`
### `image.toJPEG(quality)`
* `quality` Integer (**required**) 0 - 100 사이의 값

View file

@ -107,11 +107,11 @@ const nativeImage = require('electron').nativeImage;
var image = nativeImage.createFromPath('/Users/somebody/images/icon.png');
```
### `image.toPng()`
### `image.toPNG()`
返回一个 [Buffer][buffer] ,它包含了图片的 `PNG` 编码数据.
### `image.toJpeg(quality)`
### `image.toJPEG(quality)`
* `quality` Integer (**必须**) - 在 0 - 100 之间.