1、文字水印
void watertxt(String picpath,String words,int position,String font,int fontsize,String color,int rotate)
void watertxt(String picpath,String words,int position,String font,int fontsize,String color,int rotate,float opacity)
注:position:1,2,3,4,0分别对应左上,右上,左下,右下,中间,rotate:角度, opacity:水印透明度(0-1)
如:
watertxt("C:/test.jpg","Jkas",0,"微软雅黑",48,"00FF00",45);
2、图片水印
void waterpic(String picpath,String waterpic,int position,int rotate)
void waterpic(String picpath,String waterpic,int position,int rotate,float opacity)
注:position:1,2,3,4,0分别对应左上,右上,左下,右下,中间,rotate:角度, opacity:水印透明度(0-1)
如:
waterpic("C:/test.jpg","C:/water.png",0,0);