From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/zh-cn/web/api/imagebitmap/height/index.html | 33 ++++++ files/zh-cn/web/api/imagebitmap/index.html | 132 ++++++++++++++++++++++ files/zh-cn/web/api/imagebitmap/width/index.html | 33 ++++++ 3 files changed, 198 insertions(+) create mode 100644 files/zh-cn/web/api/imagebitmap/height/index.html create mode 100644 files/zh-cn/web/api/imagebitmap/index.html create mode 100644 files/zh-cn/web/api/imagebitmap/width/index.html (limited to 'files/zh-cn/web/api/imagebitmap') diff --git a/files/zh-cn/web/api/imagebitmap/height/index.html b/files/zh-cn/web/api/imagebitmap/height/index.html new file mode 100644 index 0000000000..b6e6560cfb --- /dev/null +++ b/files/zh-cn/web/api/imagebitmap/height/index.html @@ -0,0 +1,33 @@ +--- +title: ImageBitmap.height +slug: Web/API/ImageBitmap/height +translation_of: Web/API/ImageBitmap/height +--- +
{{APIRef("Canvas API")}}
+ +
 
+ +

只读属性 ImageBitmap.height 返回 {{domxref("ImageBitmap")}} 对象的 CSS 像素高度。

+ +

规范

+ + + + + + + + + + + + + + +
规范状态备注
{{SpecName('HTML WHATWG', "webappapis.html#dom-imagebitmap-height", "ImageBitmap.height")}}{{Spec2('HTML WHATWG')}}Initial definition.
+ +

浏览器兼容性

+ + + +

{{Compat("api.ImageBitmap.height")}}

diff --git a/files/zh-cn/web/api/imagebitmap/index.html b/files/zh-cn/web/api/imagebitmap/index.html new file mode 100644 index 0000000000..79e789620b --- /dev/null +++ b/files/zh-cn/web/api/imagebitmap/index.html @@ -0,0 +1,132 @@ +--- +title: ImageBitmap +slug: Web/API/ImageBitmap +tags: + - API + - Canvas + - ImageBitmap + - Interface + - 绘图 +translation_of: Web/API/ImageBitmap +--- +
{{APIRef("Canvas API")}}
+ +

ImageBitmap 接口表示能够被绘制到 {{HTMLElement("canvas")}} 上的位图图像,具有低延迟的特性。运用 {{domxref("ImageBitmapFactories.createImageBitmap", "createImageBitmap()")}} 工厂方法模式,它可以从多种源中生成。 ImageBitmap提供了一种异步且高资源利用率的方式来为WebGL的渲染准备基础结构。

+ +

属性

+ +
+
{{domxref("ImageBitmap.height")}} {{readonlyInline}}
+
无符号长整型数值,表示ImageData的CSS像素单位的高度。
+
{{domxref("ImageBitmap.width")}} {{readonlyInline}}
+
无符号长整型数值, 表示ImageData的CSS像素单位的宽度。
+
+ +

方法

+ +
+
{{domxref("ImageBitmap.close()")}}
+
+

释放ImageBitmap所相关联的所有图形资源。

+
+
+ +

规范

+ + + + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('HTML WHATWG', "webappapis.html#imagebitmap", "ImageBitmap")}}{{Spec2('HTML WHATWG')}} 
+ +

浏览器兼容性

+ +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{CompatVersionUnknown}}{{CompatGeckoDesktop(42)}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
close(){{CompatNo}}{{CompatGeckoDesktop(46)}}{{CompatNo}}{{CompatNo}}{{CompatNo}}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidAndroid WebviewFirefox Mobile (Gecko)IE MobileOpera MobileSafari MobileChrome for Android
Basic support{{CompatUnknown}}{{CompatVersionUnknown}}{{CompatGeckoMobile(42)}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatVersionUnknown}}
close(){{CompatNo}}{{CompatNo}}{{CompatGeckoDesktop(46)}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}
+
+ +

另见

+ + diff --git a/files/zh-cn/web/api/imagebitmap/width/index.html b/files/zh-cn/web/api/imagebitmap/width/index.html new file mode 100644 index 0000000000..14bbd1882f --- /dev/null +++ b/files/zh-cn/web/api/imagebitmap/width/index.html @@ -0,0 +1,33 @@ +--- +title: ImageBitmap.width +slug: Web/API/ImageBitmap/width +translation_of: Web/API/ImageBitmap/width +--- +
{{APIRef("Canvas API")}}
+ +
 
+ +

只读属性 ImageBitmap.width 返回 {{domxref("ImageBitmap")}} 对象的 CSS 像素宽度。

+ +

规范

+ + + + + + + + + + + + + + +
规范状态备注
{{SpecName('HTML WHATWG', "webappapis.html#dom-imagebitmap-width", "ImageBitmap.height")}}{{Spec2('HTML WHATWG')}}Initial definition.
+ +

浏览器兼容性

+ + + +

{{Compat("api.ImageBitmap.width")}}

-- cgit v1.2.3-54-g00ecf