Class ImageWatermark.Builder
java.lang.Object
cloud.opencode.base.image.watermark.ImageWatermark.Builder
- Enclosing class:
ImageWatermark
Image Watermark Builder
图片水印构建器
- Since:
- JDK 25, opencode-base-image V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the watermark 构建水印image(BufferedImage image) Set image 设置图片margin(int margin) Set margin 设置边距opacity(float opacity) Set opacity 设置透明度Set position 设置位置
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
image
Set image 设置图片- Parameters:
image- the image | 图片- Returns:
- this builder | 构建器
-
position
Set position 设置位置- Parameters:
position- the position | 位置- Returns:
- this builder | 构建器
-
opacity
Set opacity 设置透明度- Parameters:
opacity- the opacity (0.0 to 1.0) | 透明度- Returns:
- this builder | 构建器
-
margin
Set margin 设置边距- Parameters:
margin- the margin | 边距- Returns:
- this builder | 构建器
-
build
-