Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix typos #16791

Merged
merged 2 commits into from
Nov 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -362,12 +362,12 @@ function draw(img) {
- {{domxref("HTMLCanvasElement.toDataURL", "canvas.toDataURL('image/jpeg', quality)")}}
- : 创建一个 JPG 图片。你可以有选择地提供从 0 到 1 的品质量,1 表示最好品质,0 基本不被辨析但有比较小的文件大小。

当你从画布中生成了一个数据链接,例如,你可以将它用于任何{{HTMLElement("image")}}元素,或者将它放在一个有 download 属性的超链接里用于保存到本地。
当你从画布中生成了一个数据链接,例如,你可以将它用于任何 {{HTMLElement("image")}} 元素,或者将它放在一个有 download 属性的超链接里用于保存到本地。

你也可以从画布中创建一个{{domxref("Blob")}}对像
你也可以从画布创建一个 {{domxref("Blob")}} 对象

- {{domxref("HTMLCanvasElement.toBlob", "canvas.toBlob(callback, type, encoderOptions)")}}
- : 这个创建了一个在画布中的代表图片的 `Blob` 对像
- : 这个创建了一个在画布中的代表图片的 `Blob` 对象

## 参见

Expand Down