2023-02-16 15:28:15 +08:00

104 lines
1.8 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.zhgd.xmgl.base;
import java.awt.*;
/**
* @program: wisdomSite
* @description: 图片文字水印属性
* @author: Mr.Peng
* @create: 2021-11-01 15:14
**/
public class ImgTextBean {
/**
* 水印文字
*/
private String pressText;
/**
* 水印的字体颜色
*/
private Color color;
/**
* {@link Font} 字体相关信息
*/
private Font font;
/**
* 修正值。 默认在中间,偏移量相对于中间偏移
*/
private int x;
/**
* 修正值。 默认在中间,偏移量相对于中间偏移
*/
private int y;
/**
* 透明度alpha 必须是范围 [0.0, 1.0] 之内(包含边界值)的一个浮点数字
*/
private float alpha;
public ImgTextBean() {
}
public ImgTextBean(String pressText, Color color, Font font, int x, int y, float alpha) {
this.pressText = pressText;
this.color = color;
this.font = font;
this.x = x;
this.y = y;
this.alpha = alpha;
}
public String getPressText() {
return pressText;
}
public void setPressText(String pressText) {
this.pressText = pressText;
}
public Color getColor() {
return color;
}
public void setColor(Color color) {
this.color = color;
}
public Font getFont() {
return font;
}
public void setFont(Font font) {
this.font = font;
}
public int getX() {
return x;
}
public void setX(int x) {
this.x = x;
}
public int getY() {
return y;
}
public void setY(int y) {
this.y = y;
}
public float getAlpha() {
return alpha;
}
public void setAlpha(float alpha) {
this.alpha = alpha;
}
}