From 90048abd0ab6101392d7b659f14e8a175d525378 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Wed, 29 Jun 2016 11:22:50 -0700 Subject: [PATCH] Update renamed nativeImage APIs --- docs-translations/jp/api/native-image.md | 4 ++-- docs-translations/ko-KR/api/native-image.md | 4 ++-- docs-translations/zh-CN/api/native-image.md | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs-translations/jp/api/native-image.md b/docs-translations/jp/api/native-image.md index a819123707c..1c0c2ff9c6d 100644 --- a/docs-translations/jp/api/native-image.md +++ b/docs-translations/jp/api/native-image.md @@ -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. diff --git a/docs-translations/ko-KR/api/native-image.md b/docs-translations/ko-KR/api/native-image.md index d44f000a1c9..dfdc180b6c7 100644 --- a/docs-translations/ko-KR/api/native-image.md +++ b/docs-translations/ko-KR/api/native-image.md @@ -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 사이의 값 diff --git a/docs-translations/zh-CN/api/native-image.md b/docs-translations/zh-CN/api/native-image.md index aa544d07dc3..fc5955cd21a 100644 --- a/docs-translations/zh-CN/api/native-image.md +++ b/docs-translations/zh-CN/api/native-image.md @@ -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 之间.