Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
255ec76a
D
Docs
项目概览
OpenHarmony
/
Docs
大约 2 年 前同步成功
通知
161
Star
293
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看板
提交
255ec76a
编写于
8月 17, 2022
作者:
L
limeng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add colorFilter property of image component
Signed-off-by:
N
limeng
<
limeng208@huawei.com
>
上级
822ab97c
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
9 addition
and
0 deletion
+9
-0
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-image.md
...ation-dev/reference/arkui-ts/ts-basic-components-image.md
+1
-0
zh-cn/application-dev/ui/ts-types.md
zh-cn/application-dev/ui/ts-types.md
+8
-0
未找到文件。
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-image.md
浏览文件 @
255ec76a
...
...
@@ -52,6 +52,7 @@ Image(src: string | PixelMap | Resource)
| sourceSize | {
<br/>
width:
number,
<br/>
height:
number
<br/>
} | - | 设置图片裁剪尺寸,将原始图片解码成pixelMap,指定尺寸的图片,单位为px。
<br/>
>
**说明:**
<br/>
>
PixelMap资源不支持该属性。 |
| syncLoad
<sup>
8+
</sup>
| boolean | false | 设置是否同步加载图片,默认是异步加载。同步加载时阻塞UI线程,不会显示占位图。 |
| copyOption
<sup>
9+
</sup>
|
[
CopyOptions
](
#copyoptions
)
| CopyOptions.None | 设置图片是否可复制(SVG图片不支持复制)。 |
| colorFilter
<sup>
9+
</sup>
|
[
ColorFilter
](
../../ui/ts-types.md
)
| - | 给图像设置颜色滤镜效果。 |
### ImageFit
...
...
zh-cn/application-dev/ui/ts-types.md
浏览文件 @
255ec76a
...
...
@@ -98,6 +98,14 @@
| ---- | ---------------------------------------- | ---------------------------------------- |
| Font | {
<br/>
size?: Length;
<br/>
weight?:
<a
href=
"https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-text-style.md#li24391125115311"
>
FontWeight
</a>
\|
number
\|
string;
<br/>
family?: string
\|
<a
href=
"ts-types.md#Resource"
>
Resource
</a>
;
<br/>
style?:
<a
href=
"https://gitee.com/superFat/docs/blob/master/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-text-style.md#li6906111945316"
>
FontStyle
</a>
;
<br/>
} | 设置文本样式:
<br/>
size: 设置文本尺寸,Length为number类型时,使用fp单位。
<br/>
weight: 设置文本的字体粗细,number类型取值[100, 900],取值间隔为100,默认为400,取值越大,字体越粗。
<br/>
family: 设置文本的字体列表。使用多个字体,使用','进行分割,优先级按顺序生效。例如:'Arial, sans-serif'。
<br/>
style: 设置文本的字体样式。 |
## ColorFilter类型<sup>9+</sup>
| 名称 | 类型定义 | 描述 |
| ----------- | -------- | ----------------------------------------------------------- |
| ColorFilter | number[] | 用于描述颜色矩阵信息。
<br/>
行优先矩阵,长度为20的浮点数组。 |
## CustomBuilder类型<sup>8+</sup>
组件属性方法参数可使用CustomBuilder类型来自定义UI描述。
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录