Skip to content

Commit f83d53e

Browse files
author
Yang
authored
Update README.md
1 parent eca623d commit f83d53e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,18 @@ epVideo.rotation(90,true);
4444
```
4545
* 添加文字
4646
```Java
47-
//参数分别是添加位置的X,Y坐标,文字的字号(单位px),文字颜色,字体文件的路径,内容
47+
//参数分别是添加位置的X,Y坐标,文字的字号(单位px),文字颜色,字体文件的路径,内容,Time类为显示的起始时间和持续时间
4848
epVideo.addText(10,10,35,"red",ttfPath,text);
49+
epVideo.addText(new EpText(10,10,35,"red",ttfPath,text,new EpText.Time(3,5)));
4950
```
5051
* 添加logo
5152
```Java
5253
//添加图片类
5354
//参数为图片路径,X,Y,图片的宽,高,是否是动图(仅支持png,jpg,gif图片,如果是gif图片,最后一个参数为true)
5455
EpDraw epDraw = new EpDraw(filePath,10,10,50,50,false);
5556
epVideo.addDraw(epDraw);
57+
58+
epVideo.addDraw(new EpDraw(filePath,10,10,50,50,false,3,5));//最后两个参数为显示的起始时间和持续时间
5659
```
5760
* 添加自定义滤镜
5861
```Java

0 commit comments

Comments
 (0)