@@ -14,6 +14,8 @@ public class EpDraw {
1414private float picHeight ;//图片的高
1515private boolean isAnimation ;//是否是动图
1616
17+ private String time = "" ;//起始结束时间
18+
1719private String picFilter ;//图片滤镜
1820
1921public EpDraw (String picPath , int picX , int picY , float picWidth , float picHeight , boolean isAnimation ) {
@@ -25,6 +27,16 @@ public EpDraw(String picPath, int picX, int picY, float picWidth, float picHeigh
2527this .isAnimation = isAnimation ;
2628}
2729
30+ public EpDraw (String picPath , int picX , int picY , float picWidth , float picHeight , boolean isAnimation ,int start ,int end ) {
31+ this .picPath = picPath ;
32+ this .picX = picX ;
33+ this .picY = picY ;
34+ this .picWidth = picWidth ;
35+ this .picHeight = picHeight ;
36+ this .isAnimation = isAnimation ;
37+ time = ":enable=between(t\\ ," + start + "\\ ," + end + ")" ;
38+ }
39+
2840public String getPicPath () {
2941return picPath ;
3042}
@@ -53,6 +65,10 @@ public String getPicFilter() {
5365return picFilter == null ? "" : (picFilter + "," );
5466}
5567
68+ public String getTime () {
69+ return time ;
70+ }
71+
5672public void setPicFilter (String picFilter ) {
5773this .picFilter = picFilter ;
5874}
0 commit comments