Skip to content

Commit

Permalink
Add {{AvailableInWorkers}} for ImageBitmap and content update (#36207)
Browse files Browse the repository at this point in the history
* add

* Update files/en-us/web/api/imagebitmaprenderingcontext/canvas/index.md
  • Loading branch information
skyclouds2001 authored Oct 8, 2024
1 parent a10e3f0 commit e899c62
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion files/en-us/web/api/imagebitmap/close/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ page-type: web-api-instance-method
browser-compat: api.ImageBitmap.close
---

{{APIRef("Canvas API")}}
{{APIRef("Canvas API")}}{{AvailableInWorkers}}

The **`ImageBitmap.close()`**
method disposes of all graphical resources associated with an `ImageBitmap`.
Expand Down
8 changes: 6 additions & 2 deletions files/en-us/web/api/imagebitmap/height/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@ page-type: web-api-instance-property
browser-compat: api.ImageBitmap.height
---

{{APIRef("Canvas API")}}
{{APIRef("Canvas API")}}{{AvailableInWorkers}}

The read-only **`ImageBitmap.height`** property returns the {{domxref("ImageBitmap")}} object's height in CSS pixels.
The **`ImageBitmap.height`** read-only property returns the {{domxref("ImageBitmap")}} object's height in CSS pixels.

## Value

A number represents the {{domxref("ImageBitmap")}} object's height in CSS pixels.

## Specifications

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/imagebitmap/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ page-type: web-api-interface
browser-compat: api.ImageBitmap
---

{{APIRef("Canvas API")}}
{{APIRef("Canvas API")}}{{AvailableInWorkers}}

The **`ImageBitmap`** interface represents a bitmap image which can be drawn to a {{HTMLElement("canvas")}} without undue latency. It can be created from a variety of source objects using the {{domxref("Window.createImageBitmap()")}} or {{domxref("WorkerGlobalScope.createImageBitmap()")}} factory method. `ImageBitmap` provides an asynchronous and resource efficient pathway to prepare textures for rendering in WebGL.

Expand Down
8 changes: 6 additions & 2 deletions files/en-us/web/api/imagebitmap/width/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@ page-type: web-api-instance-property
browser-compat: api.ImageBitmap.width
---

{{APIRef("Canvas API")}}
{{APIRef("Canvas API")}}{{AvailableInWorkers}}

The read-only **`ImageBitmap.width`** property returns the {{domxref("ImageBitmap")}} object's width in CSS pixels.
The **`ImageBitmap.width`** read-only property returns the {{domxref("ImageBitmap")}} object's width in CSS pixels.

## Value

A number represents the {{domxref("ImageBitmap")}} object's width in CSS pixels.

## Specifications

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ page-type: web-api-instance-property
browser-compat: api.ImageBitmapRenderingContext.canvas
---

{{APIRef}}
{{APIRef("Canvas API")}}{{AvailableInWorkers}}

The **`ImageBitmapRenderingContext.canvas`** property, part of the
[Canvas API](/en-US/docs/Web/API/Canvas_API), is a read-only reference to the
Expand Down

0 comments on commit e899c62

Please sign in to comment.