Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
65af486c
D
Docs
项目概览
OpenHarmony
/
Docs
1 年多 前同步成功
通知
159
Star
292
Fork
28
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
65af486c
编写于
8月 24, 2022
作者:
E
ester.zhou
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update ts-offscreencanvasrenderingcontext2d.md (8536)
Signed-off-by:
N
ester.zhou
<
ester.zhou@huawei.com
>
上级
4fc94f66
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
35 addition
and
32 deletion
+35
-32
en/application-dev/reference/arkui-ts/ts-offscreencanvasrenderingcontext2d.md
...eference/arkui-ts/ts-offscreencanvasrenderingcontext2d.md
+35
-32
未找到文件。
en/application-dev/reference/arkui-ts/ts-offscreencanvasrenderingcontext2d.md
浏览文件 @
65af486c
...
...
@@ -273,7 +273,7 @@ struct MiterLimit {
// xxx.ets
@
Entry
@
Component
struct
Font
{
struct
Font
s
{
private
settings
:
RenderingContextSettings
=
new
RenderingContextSettings
(
true
)
private
context
:
CanvasRenderingContext2D
=
new
CanvasRenderingContext2D
(
this
.
settings
)
private
offContext
:
OffscreenCanvasRenderingContext2D
=
new
OffscreenCanvasRenderingContext2D
(
600
,
600
,
this
.
settings
)
...
...
@@ -728,7 +728,7 @@ Fills a rectangle on the canvas.
-
Example
```
ts
// xxx.ets
// xxx.ets
@
Entry
@
Component
struct
FillRect
{
...
...
@@ -773,7 +773,8 @@ Draws an outlined rectangle on the canvas.
-
Example
```
```
ts
// xxx.ets
@
Entry
@
Component
struct
StrokeRect
{
...
...
@@ -818,7 +819,7 @@ Clears the content in a rectangle on the canvas.
-
Example
```
ts
// xxx.ets
// xxx.ets
@
Entry
@
Component
struct
ClearRect
{
...
...
@@ -864,7 +865,7 @@ Draws filled text on the canvas.
-
Example
```
ts
// xxx.ets
// xxx.ets
@
Entry
@
Component
struct
FillText
{
...
...
@@ -908,7 +909,8 @@ Draws a text stroke on the canvas.
-
Example
```
```
ts
// xxx.ets
@
Entry
@
Component
struct
StrokeText
{
...
...
@@ -961,7 +963,7 @@ Returns a **TextMetrics** object used to obtain the width of specified text.
-
Example
```
ts
// xxx.ets
// xxx.ets
@
Entry
@
Component
struct
MeasureText
{
...
...
@@ -1004,7 +1006,8 @@ Strokes a path.
-
Example
```
```
ts
// xxx.ets
@
Entry
@
Component
struct
Stroke
{
...
...
@@ -1044,7 +1047,7 @@ Creates a drawing path.
-
Example
```
ts
// xxx.ets
// xxx.ets
@
Entry
@
Component
struct
BeginPath
{
...
...
@@ -1092,7 +1095,7 @@ Moves a drawing path to a target position on the canvas.
-
Example
```
ts
// xxx.ets
// xxx.ets
@
Entry
@
Component
struct
MoveTo
{
...
...
@@ -1138,7 +1141,7 @@ Connects the current point to a target position using a straight line.
-
Example
```
ts
// xxx.ets
// xxx.ets
@
Entry
@
Component
struct
LineTo
{
...
...
@@ -1178,7 +1181,7 @@ Draws a closed path.
-
Example
```
ts
// xxx.ets
// xxx.ets
@
Entry
@
Component
struct
ClosePath
{
...
...
@@ -1226,7 +1229,7 @@ Creates a pattern for image filling based on a specified source image and repeti
-
Example
```
ts
// xxx.ets
// xxx.ets
@
Entry
@
Component
struct
CreatePattern
{
...
...
@@ -1276,7 +1279,7 @@ Draws a cubic bezier curve on the canvas.
-
Example
```
ts
// xxx.ets
// xxx.ets
@
Entry
@
Component
struct
BezierCurveTo
{
...
...
@@ -1324,7 +1327,7 @@ Draws a quadratic curve on the canvas.
-
Example
```
ts
// xxx.ets
// xxx.ets
@
Entry
@
Component
struct
QuadraticCurveTo
{
...
...
@@ -1374,7 +1377,7 @@ Draws an arc on the canvas.
-
Example
```
ts
// xxx.ets
// xxx.ets
@
Entry
@
Component
struct
Arc
{
...
...
@@ -1422,7 +1425,7 @@ Draws an arc based on the radius and points on the arc.
-
Example
```
ts
// xxx.ets
// xxx.ets
@
Entry
@
Component
struct
ArcTo
{
...
...
@@ -1474,7 +1477,7 @@ Draws an ellipse in the specified rectangular region.
```
ts
// xxx.ets
// xxx.ets
@
Entry
@
Component
struct
CanvasExample
{
...
...
@@ -1521,7 +1524,7 @@ Creates a rectangle.
-
Example
```
ts
// xxx.ets
// xxx.ets
@
Entry
@
Component
struct
CanvasExample
{
...
...
@@ -1559,7 +1562,7 @@ Fills the area inside a closed path.
-
Example
```
ts
// xxx.ets
// xxx.ets
@
Entry
@
Component
struct
Fill
{
...
...
@@ -1597,7 +1600,7 @@ Sets the current path to a clipping path.
-
Example
```
ts
// xxx.ets
// xxx.ets
@
Entry
@
Component
struct
Clip
{
...
...
@@ -1643,7 +1646,7 @@ Rotates a canvas clockwise around its coordinate axes.
-
Example
```
ts
// xxx.ets
// xxx.ets
@
Entry
@
Component
struct
Rotate
{
...
...
@@ -1687,7 +1690,7 @@ Scales a canvas based on scale factors.
-
Example
```
ts
// xxx.ets
// xxx.ets
@
Entry
@
Component
struct
Scale
{
...
...
@@ -1743,7 +1746,7 @@ Defines a transformation matrix. To transform a graph, you only need to set para
-
Example
```
ts
// xxx.ets
// xxx.ets
@
Entry
@
Component
struct
Transform
{
...
...
@@ -1797,7 +1800,7 @@ Resets the existing transformation matrix and creates a new transformation matri
-
Example
```
ts
// xxx.ets
// xxx.ets
@
Entry
@
Component
struct
SetTransform
{
...
...
@@ -1844,7 +1847,7 @@ Moves the origin of the coordinate system.
-
Example
```
ts
// xxx.ets
// xxx.ets
@
Entry
@
Component
struct
Translate
{
...
...
@@ -1901,7 +1904,7 @@ Draws an image.
-
Example
```
ts
// xxx.ets
// xxx.ets
@
Entry
@
Component
struct
Index
{
...
...
@@ -2002,7 +2005,7 @@ Puts the [ImageData](ts-components-canvas-imagebitmap.md) onto a rectangular are
-
Example
```
ts
// xxx.ets
// xxx.ets
@
Entry
@
Component
struct
PutImageData
{
...
...
@@ -2046,7 +2049,7 @@ Restores the saved drawing context.
-
Example
```
ts
// xxx.ets
// xxx.ets
@
Entry
@
Component
struct
CanvasExample
{
...
...
@@ -2081,7 +2084,7 @@ Saves the current drawing context.
-
Example
```
ts
// xxx.ets
// xxx.ets
@
Entry
@
Component
struct
CanvasExample
{
...
...
@@ -2124,7 +2127,7 @@ Creates a linear gradient.
-
Example
```
ts
// xxx.ets
// xxx.ets
@
Entry
@
Component
struct
CreateLinearGradient
{
...
...
@@ -2177,7 +2180,7 @@ Creates a linear gradient.
-
Example
```
ts
// xxx.ets
// xxx.ets
@
Entry
@
Component
struct
CreateRadialGradient
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录