Index

A B C D E F G H I J M O P Q R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

andThen(ImageOperation) - Method in interface cloud.opencode.base.image.security.ImageOperation
Chain with another operation 与另一个操作链接
apply(BufferedImage) - Method in interface cloud.opencode.base.image.security.ImageOperation
Apply operation to image 应用操作到图片
aspectRatio() - Method in record class cloud.opencode.base.image.ImageInfo
Get aspect ratio 获取宽高比

B

BMP - Enum constant in enum class cloud.opencode.base.image.ImageFormat
BMP format | BMP格式
BOTTOM_CENTER - Enum constant in enum class cloud.opencode.base.image.Position
Bottom center | 底部居中
BOTTOM_LEFT - Enum constant in enum class cloud.opencode.base.image.Position
Bottom left corner | 左下角
BOTTOM_RIGHT - Enum constant in enum class cloud.opencode.base.image.Position
Bottom right corner | 右下角
build() - Method in class cloud.opencode.base.image.security.SafeImageService.Builder
Build the service 构建服务
build() - Method in class cloud.opencode.base.image.thumbnail.ThumbnailBuilder
Build thumbnail 构建缩略图
build() - Method in class cloud.opencode.base.image.watermark.ImageWatermark.Builder
Build the watermark 构建水印
build() - Method in class cloud.opencode.base.image.watermark.TextWatermark.Builder
Build the watermark 构建水印
builder() - Static method in class cloud.opencode.base.image.security.SafeImageService
Create builder 创建构建器
builder() - Static method in record class cloud.opencode.base.image.watermark.ImageWatermark
Create a builder 创建构建器
builder() - Static method in record class cloud.opencode.base.image.watermark.TextWatermark
Create a builder 创建构建器
builder(ImageWatermark) - Static method in record class cloud.opencode.base.image.watermark.ImageWatermark
Create a builder from existing watermark 从现有水印创建构建器
builder(TextWatermark) - Static method in record class cloud.opencode.base.image.watermark.TextWatermark
Create a builder from existing watermark 从现有水印创建构建器
Builder() - Constructor for class cloud.opencode.base.image.security.SafeImageService.Builder
 
Builder() - Constructor for class cloud.opencode.base.image.watermark.ImageWatermark.Builder
 
Builder() - Constructor for class cloud.opencode.base.image.watermark.TextWatermark.Builder
 

C

CENTER - Enum constant in enum class cloud.opencode.base.image.Position
Center | 居中
CENTER_LEFT - Enum constant in enum class cloud.opencode.base.image.Position
Center left | 左侧居中
CENTER_RIGHT - Enum constant in enum class cloud.opencode.base.image.Position
Center right | 右侧居中
checkMagicNumber(byte[]) - Static method in class cloud.opencode.base.image.validation.ImageValidator
Check magic number 检查魔数
close() - Method in class cloud.opencode.base.image.security.SafeImageService
 
cloud.opencode.base.image - module cloud.opencode.base.image
OpenCode Base Image Module OpenCode 图片处理模块
cloud.opencode.base.image - package cloud.opencode.base.image
 
cloud.opencode.base.image.exception - package cloud.opencode.base.image.exception
 
cloud.opencode.base.image.security - package cloud.opencode.base.image.security
 
cloud.opencode.base.image.thumbnail - package cloud.opencode.base.image.thumbnail
 
cloud.opencode.base.image.validation - package cloud.opencode.base.image.validation
 
cloud.opencode.base.image.watermark - package cloud.opencode.base.image.watermark
 
color() - Method in record class cloud.opencode.base.image.watermark.TextWatermark
Returns the value of the color record component.
color(int, int, int) - Method in class cloud.opencode.base.image.watermark.TextWatermark.Builder
Set color by RGB 按RGB设置颜色
color(int, int, int, int) - Method in class cloud.opencode.base.image.watermark.TextWatermark.Builder
Set color by RGBA 按RGBA设置颜色
color(Color) - Method in class cloud.opencode.base.image.watermark.TextWatermark.Builder
Set color 设置颜色
compose(ImageOperation) - Method in interface cloud.opencode.base.image.security.ImageOperation
Compose with another operation 与另一个操作组合
compress(float) - Method in class cloud.opencode.base.image.Image
Compress image with quality 按质量压缩图片
compress(Path, Path, float) - Static method in class cloud.opencode.base.image.OpenImage
Quick compress operation 快速压缩操作
COMPRESS_FAILED - Enum constant in enum class cloud.opencode.base.image.exception.ImageErrorCode
Compress failed | 压缩失败
convert(ImageFormat) - Method in class cloud.opencode.base.image.Image
Convert to specified format 转换到指定格式
convert(Path, Path, ImageFormat) - Static method in class cloud.opencode.base.image.OpenImage
Quick format conversion 快速格式转换
CONVERT_FAILED - Enum constant in enum class cloud.opencode.base.image.exception.ImageErrorCode
Convert failed | 转换失败
copy() - Method in class cloud.opencode.base.image.Image
Create a copy of this image 创建此图片的副本
copyBufferedImage() - Method in class cloud.opencode.base.image.Image
Get a copy of the underlying BufferedImage 获取底层BufferedImage的副本
create() - Method in class cloud.opencode.base.image.thumbnail.ThumbnailBuilder
Create the thumbnail and save to output path 创建缩略图并保存到输出路径
createBlank(int, int) - Static method in class cloud.opencode.base.image.OpenImage
Create a blank image 创建空白图片
createBlank(int, int, int) - Static method in class cloud.opencode.base.image.OpenImage
Create a blank image with color 创建带颜色的空白图片
createDefault() - Static method in class cloud.opencode.base.image.security.SafeImageService
Create with default settings 使用默认设置创建
crop(boolean) - Method in class cloud.opencode.base.image.thumbnail.ThumbnailBuilder
Enable/disable cropping to fit exact size 启用/禁用裁剪以适应精确尺寸
crop(int, int, int, int) - Method in class cloud.opencode.base.image.Image
Crop to specified region 裁剪到指定区域
crop(Path, Path, int, int, int, int) - Static method in class cloud.opencode.base.image.OpenImage
Quick crop operation 快速裁剪操作
CROP_FAILED - Enum constant in enum class cloud.opencode.base.image.exception.ImageErrorCode
Crop failed | 裁剪失败
cropCenter(int, int) - Method in class cloud.opencode.base.image.Image
Crop from center 从中心裁剪
cropSquare() - Method in class cloud.opencode.base.image.Image
Crop to square from center 从中心裁剪为正方形

D

DEFAULT_COLOR - Static variable in record class cloud.opencode.base.image.watermark.TextWatermark
Default color | 默认颜色
DEFAULT_FONT - Static variable in record class cloud.opencode.base.image.watermark.TextWatermark
Default font | 默认字体
DEFAULT_MARGIN - Static variable in record class cloud.opencode.base.image.watermark.ImageWatermark
Default margin | 默认边距
DEFAULT_MARGIN - Static variable in record class cloud.opencode.base.image.watermark.TextWatermark
Default margin | 默认边距
DEFAULT_MAX_FILE_SIZE - Static variable in class cloud.opencode.base.image.validation.ImageValidator
Default maximum file size (10 MB) 默认最大文件大小(10 MB)
DEFAULT_MAX_HEIGHT - Static variable in class cloud.opencode.base.image.validation.ImageValidator
Default maximum height (8000 pixels) 默认最大高度(8000 像素)
DEFAULT_MAX_WIDTH - Static variable in class cloud.opencode.base.image.validation.ImageValidator
Default maximum width (8000 pixels) 默认最大宽度(8000 像素)
DEFAULT_OPACITY - Static variable in record class cloud.opencode.base.image.watermark.ImageWatermark
Default opacity | 默认透明度
DEFAULT_OPACITY - Static variable in record class cloud.opencode.base.image.watermark.TextWatermark
Default opacity | 默认透明度
detectFormat(byte[]) - Static method in class cloud.opencode.base.image.validation.ImageValidator
Deprecated.
detectFormat(Path) - Static method in class cloud.opencode.base.image.OpenImage
Detect format from file path 从文件路径检测格式
detectFormatOptional(byte[]) - Static method in class cloud.opencode.base.image.validation.ImageValidator
Detect format from magic number (null-safe) 从魔数检测格式(空值安全)

E

ensureParentExists(Path) - Static method in class cloud.opencode.base.image.security.SafePathUtil
Ensure parent directory exists 确保父目录存在
equals(Object) - Method in record class cloud.opencode.base.image.ImageInfo
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class cloud.opencode.base.image.watermark.ImageWatermark
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class cloud.opencode.base.image.watermark.TextWatermark
Indicates whether some other object is "equal to" this one.
estimatedMemorySize() - Method in record class cloud.opencode.base.image.ImageInfo
Get estimated memory size in bytes (assuming ARGB) 获取估算的内存大小(字节,假设ARGB)

F

FILE_NOT_FOUND - Enum constant in enum class cloud.opencode.base.image.exception.ImageErrorCode
File not found | 文件不存在
FILE_TOO_LARGE - Enum constant in enum class cloud.opencode.base.image.exception.ImageErrorCode
File too large | 文件大小过大
fileSize() - Method in record class cloud.opencode.base.image.ImageInfo
Returns the value of the fileSize record component.
fileSizeFormatted() - Method in record class cloud.opencode.base.image.ImageInfo
Get file size in human-readable format 获取人类可读的文件大小
flipHorizontal() - Method in class cloud.opencode.base.image.Image
Flip horizontally 水平翻转
flipHorizontal(Path, Path) - Static method in class cloud.opencode.base.image.OpenImage
Quick horizontal flip 快速水平翻转
flipVertical() - Method in class cloud.opencode.base.image.Image
Flip vertically 垂直翻转
flipVertical(Path, Path) - Static method in class cloud.opencode.base.image.OpenImage
Quick vertical flip 快速垂直翻转
font() - Method in record class cloud.opencode.base.image.watermark.TextWatermark
Returns the value of the font record component.
font(Font) - Method in class cloud.opencode.base.image.watermark.TextWatermark.Builder
Set font 设置字体
font(String, int) - Method in class cloud.opencode.base.image.watermark.TextWatermark.Builder
Set font by name and size 按名称和大小设置字体
font(String, int, int) - Method in class cloud.opencode.base.image.watermark.TextWatermark.Builder
Set font by name, style and size 按名称、样式和大小设置字体
format() - Method in record class cloud.opencode.base.image.ImageInfo
Returns the value of the format record component.
format(ImageFormat) - Method in class cloud.opencode.base.image.Image
Set the image format 设置图片格式
format(ImageFormat) - Method in class cloud.opencode.base.image.thumbnail.ThumbnailBuilder
Set output format 设置输出格式
FORMAT_MISMATCH - Enum constant in enum class cloud.opencode.base.image.exception.ImageErrorCode
Format mismatch | 格式不匹配
from(byte[]) - Static method in class cloud.opencode.base.image.Image
Create image from bytes 从字节数组创建图片
from(BufferedImage) - Static method in class cloud.opencode.base.image.Image
Create image from BufferedImage 从BufferedImage创建图片
from(Path) - Static method in class cloud.opencode.base.image.Image
Create image from path 从路径创建图片
fromBase64(String) - Static method in class cloud.opencode.base.image.OpenImage
Read image from Base64 string 从Base64字符串读取图片
fromExtension(String) - Static method in enum class cloud.opencode.base.image.ImageFormat
Get format from file extension 从文件扩展名获取格式
fromMimeType(String) - Static method in enum class cloud.opencode.base.image.ImageFormat
Get format from MIME type 从MIME类型获取格式

G

generateOutputPath(Path, ImageFormat) - Static method in class cloud.opencode.base.image.security.SafePathUtil
Generate safe output path with new format 生成带新格式的安全输出路径
generateOutputPath(Path, String) - Static method in class cloud.opencode.base.image.security.SafePathUtil
Generate safe output path 生成安全的输出路径
getActiveCount() - Method in class cloud.opencode.base.image.security.SafeImageService
Get active operation count 获取活动操作数
getAvailablePermits() - Method in class cloud.opencode.base.image.security.SafeImageService
Get available permits 获取可用许可数
getBufferedImage() - Method in class cloud.opencode.base.image.Image
Get the underlying BufferedImage 获取底层BufferedImage
getCode() - Method in enum class cloud.opencode.base.image.exception.ImageErrorCode
Get error code 获取错误码
getDescription() - Method in enum class cloud.opencode.base.image.exception.ImageErrorCode
Get error description 获取错误描述
getDimensions(Path) - Static method in class cloud.opencode.base.image.OpenImage
Get image dimensions without fully loading 获取图片尺寸(不完全加载)
getErrorCode() - Method in exception class cloud.opencode.base.image.exception.ImageException
Get the error code 获取错误码
getExtension() - Method in enum class cloud.opencode.base.image.ImageFormat
Get file extension 获取文件扩展名
getExtension(String) - Static method in class cloud.opencode.base.image.security.SafePathUtil
Get file extension 获取文件扩展名
getFileSize() - Method in exception class cloud.opencode.base.image.exception.ImageTooLargeException
Get actual file size 获取实际文件大小
getFormat() - Method in exception class cloud.opencode.base.image.exception.ImageFormatException
Get the format 获取格式
getFormat() - Method in class cloud.opencode.base.image.Image
Get the image format 获取图片格式
getFormat(Path) - Static method in class cloud.opencode.base.image.security.SafePathUtil
Get format from path 从路径获取格式
getHeight() - Method in exception class cloud.opencode.base.image.exception.ImageTooLargeException
Get actual height 获取实际高度
getHeight() - Method in class cloud.opencode.base.image.Image
Get image height 获取图片高度
getHeight() - Method in record class cloud.opencode.base.image.watermark.ImageWatermark
Get watermark height 获取水印高度
getInfo() - Method in class cloud.opencode.base.image.Image
Get image info 获取图片信息
getInfo(Path) - Static method in class cloud.opencode.base.image.OpenImage
Get image info from path 从路径获取图片信息
getInfo(Path) - Method in class cloud.opencode.base.image.security.SafeImageService
Get image info safely 安全获取图片信息
getMaxFileSize() - Method in exception class cloud.opencode.base.image.exception.ImageTooLargeException
Get maximum file size 获取最大文件大小
getMaxHeight() - Method in exception class cloud.opencode.base.image.exception.ImageTooLargeException
Get maximum height 获取最大高度
getMaxWidth() - Method in exception class cloud.opencode.base.image.exception.ImageTooLargeException
Get maximum width 获取最大宽度
getMessage() - Method in enum class cloud.opencode.base.image.exception.ImageErrorCode
Get error message 获取错误消息
getMimeType() - Method in enum class cloud.opencode.base.image.ImageFormat
Get MIME type 获取MIME类型
getOperation() - Method in exception class cloud.opencode.base.image.exception.ImageOperationException
Get the operation name 获取操作名称
getPath() - Method in exception class cloud.opencode.base.image.exception.ImageReadException
Get the file path 获取文件路径
getPath() - Method in exception class cloud.opencode.base.image.exception.ImageWriteException
Get the file path 获取文件路径
getTimeout() - Method in exception class cloud.opencode.base.image.exception.ImageTimeoutException
Get the timeout duration 获取超时时间
getWidth() - Method in exception class cloud.opencode.base.image.exception.ImageTooLargeException
Get actual width 获取实际宽度
getWidth() - Method in class cloud.opencode.base.image.Image
Get image width 获取图片宽度
getWidth() - Method in record class cloud.opencode.base.image.watermark.ImageWatermark
Get watermark width 获取水印宽度
GIF - Enum constant in enum class cloud.opencode.base.image.ImageFormat
GIF format | GIF格式
grayscale() - Method in class cloud.opencode.base.image.Image
Convert to grayscale 转换为灰度图
grayscale(Path, Path) - Static method in class cloud.opencode.base.image.OpenImage
Quick grayscale conversion 快速灰度转换

H

hashCode() - Method in record class cloud.opencode.base.image.ImageInfo
Returns a hash code value for this object.
hashCode() - Method in record class cloud.opencode.base.image.watermark.ImageWatermark
Returns a hash code value for this object.
hashCode() - Method in record class cloud.opencode.base.image.watermark.TextWatermark
Returns a hash code value for this object.
height() - Method in record class cloud.opencode.base.image.ImageInfo
Returns the value of the height record component.
height(int) - Method in class cloud.opencode.base.image.thumbnail.ThumbnailBuilder
Set thumbnail height (width auto-calculated) 设置缩略图高度(宽度自动计算)

I

identity() - Static method in interface cloud.opencode.base.image.security.ImageOperation
Create identity operation (returns input unchanged) 创建恒等操作(返回不变的输入)
image() - Method in record class cloud.opencode.base.image.watermark.ImageWatermark
Returns the value of the image record component.
image(BufferedImage) - Method in class cloud.opencode.base.image.watermark.ImageWatermark.Builder
Set image 设置图片
Image - Class in cloud.opencode.base.image
Image 图片处理包装类
Image(BufferedImage) - Constructor for class cloud.opencode.base.image.Image
Create image wrapper 创建图片包装器
Image(BufferedImage, ImageFormat) - Constructor for class cloud.opencode.base.image.Image
Create image wrapper with format 创建带格式的图片包装器
IMAGE_TOO_LARGE - Enum constant in enum class cloud.opencode.base.image.exception.ImageErrorCode
Image too large | 图片尺寸过大
ImageErrorCode - Enum Class in cloud.opencode.base.image.exception
Image Error Code 图片错误码枚举
ImageException - Exception Class in cloud.opencode.base.image.exception
Image Exception 图片异常基类
ImageException(String) - Constructor for exception class cloud.opencode.base.image.exception.ImageException
Create an image exception with message 创建带消息的图片异常
ImageException(String, ImageErrorCode) - Constructor for exception class cloud.opencode.base.image.exception.ImageException
Create an image exception with message and error code 创建带消息和错误码的图片异常
ImageException(String, Throwable) - Constructor for exception class cloud.opencode.base.image.exception.ImageException
Create an image exception with message and cause 创建带消息和原因的图片异常
ImageException(String, Throwable, ImageErrorCode) - Constructor for exception class cloud.opencode.base.image.exception.ImageException
Create an image exception with message, cause and error code 创建带消息、原因和错误码的图片异常
ImageFormat - Enum Class in cloud.opencode.base.image
Image Format 图片格式枚举
ImageFormatException - Exception Class in cloud.opencode.base.image.exception
Image Format Exception 图片格式异常
ImageFormatException(String) - Constructor for exception class cloud.opencode.base.image.exception.ImageFormatException
Create an image format exception 创建图片格式异常
ImageFormatException(String, ImageErrorCode) - Constructor for exception class cloud.opencode.base.image.exception.ImageFormatException
Create an image format exception with error code 创建带错误码的图片格式异常
ImageFormatException(String, String) - Constructor for exception class cloud.opencode.base.image.exception.ImageFormatException
Create an image format exception with format 创建带格式的图片格式异常
ImageFormatException(String, Throwable) - Constructor for exception class cloud.opencode.base.image.exception.ImageFormatException
Create an image format exception with cause 创建带原因的图片格式异常
ImageInfo - Record Class in cloud.opencode.base.image
Image Info 图片信息
ImageInfo(int, int) - Constructor for record class cloud.opencode.base.image.ImageInfo
Create image info with dimensions only 仅使用尺寸创建图片信息
ImageInfo(int, int, ImageFormat) - Constructor for record class cloud.opencode.base.image.ImageInfo
Create image info with dimensions and format 使用尺寸和格式创建图片信息
ImageInfo(int, int, ImageFormat, long) - Constructor for record class cloud.opencode.base.image.ImageInfo
Creates an instance of a ImageInfo record class.
ImageIOException - Exception Class in cloud.opencode.base.image.exception
Image IO Exception 图片IO异常
ImageIOException(String) - Constructor for exception class cloud.opencode.base.image.exception.ImageIOException
Create an image IO exception 创建图片IO异常
ImageIOException(String, ImageErrorCode) - Constructor for exception class cloud.opencode.base.image.exception.ImageIOException
Create an image IO exception with error code 创建带错误码的图片IO异常
ImageIOException(String, Throwable) - Constructor for exception class cloud.opencode.base.image.exception.ImageIOException
Create an image IO exception with cause 创建带原因的图片IO异常
ImageIOException(String, Throwable, ImageErrorCode) - Constructor for exception class cloud.opencode.base.image.exception.ImageIOException
Create an image IO exception with cause and error code 创建带原因和错误码的图片IO异常
ImageOperation - Interface in cloud.opencode.base.image.security
Image Operation 图片操作函数接口
ImageOperationException - Exception Class in cloud.opencode.base.image.exception
Image Operation Exception 图片操作异常
ImageOperationException(String) - Constructor for exception class cloud.opencode.base.image.exception.ImageOperationException
Create an image operation exception 创建图片操作异常
ImageOperationException(String, ImageErrorCode) - Constructor for exception class cloud.opencode.base.image.exception.ImageOperationException
Create an image operation exception with error code 创建带错误码的图片操作异常
ImageOperationException(String, String) - Constructor for exception class cloud.opencode.base.image.exception.ImageOperationException
Create an image operation exception with operation name 创建带操作名称的图片操作异常
ImageOperationException(String, Throwable) - Constructor for exception class cloud.opencode.base.image.exception.ImageOperationException
Create an image operation exception with cause 创建带原因的图片操作异常
ImageOperationException(String, Throwable, ImageErrorCode) - Constructor for exception class cloud.opencode.base.image.exception.ImageOperationException
Create an image operation exception with cause and error code 创建带原因和错误码的图片操作异常
ImageReadException - Exception Class in cloud.opencode.base.image.exception
Image Read Exception 图片读取异常
ImageReadException(String) - Constructor for exception class cloud.opencode.base.image.exception.ImageReadException
Create an image read exception 创建图片读取异常
ImageReadException(String, Throwable) - Constructor for exception class cloud.opencode.base.image.exception.ImageReadException
Create an image read exception with message and cause 创建带消息和原因的图片读取异常
ImageReadException(Path) - Constructor for exception class cloud.opencode.base.image.exception.ImageReadException
Create an image read exception with path 创建带路径的图片读取异常
ImageReadException(Path, Throwable) - Constructor for exception class cloud.opencode.base.image.exception.ImageReadException
Create an image read exception with path and cause 创建带路径和原因的图片读取异常
ImageResourceException - Exception Class in cloud.opencode.base.image.exception
Image Resource Exception 图片资源异常
ImageResourceException(String) - Constructor for exception class cloud.opencode.base.image.exception.ImageResourceException
Create an image resource exception 创建图片资源异常
ImageResourceException(String, ImageErrorCode) - Constructor for exception class cloud.opencode.base.image.exception.ImageResourceException
Create an image resource exception with error code 创建带错误码的图片资源异常
ImageResourceException(String, Throwable) - Constructor for exception class cloud.opencode.base.image.exception.ImageResourceException
Create an image resource exception with cause 创建带原因的图片资源异常
ImageTimeoutException - Exception Class in cloud.opencode.base.image.exception
Image Timeout Exception 图片处理超时异常
ImageTimeoutException(String) - Constructor for exception class cloud.opencode.base.image.exception.ImageTimeoutException
Create an image timeout exception 创建图片超时异常
ImageTimeoutException(String, Throwable) - Constructor for exception class cloud.opencode.base.image.exception.ImageTimeoutException
Create an image timeout exception with cause 创建带原因的图片超时异常
ImageTimeoutException(String, Duration) - Constructor for exception class cloud.opencode.base.image.exception.ImageTimeoutException
Create an image timeout exception with timeout 创建带超时时间的图片超时异常
ImageTooLargeException - Exception Class in cloud.opencode.base.image.exception
Image Too Large Exception 图片过大异常
ImageTooLargeException(int, int, int, int) - Constructor for exception class cloud.opencode.base.image.exception.ImageTooLargeException
Create an image too large exception for dimensions 创建尺寸过大的图片异常
ImageTooLargeException(long, long) - Constructor for exception class cloud.opencode.base.image.exception.ImageTooLargeException
Create an image too large exception for file size 创建文件过大的图片异常
ImageTooLargeException(String) - Constructor for exception class cloud.opencode.base.image.exception.ImageTooLargeException
Create an image too large exception with message 创建带消息的图片过大异常
ImageValidationException - Exception Class in cloud.opencode.base.image.exception
Image Validation Exception 图片验证异常
ImageValidationException(String) - Constructor for exception class cloud.opencode.base.image.exception.ImageValidationException
Create an image validation exception 创建图片验证异常
ImageValidationException(String, ImageErrorCode) - Constructor for exception class cloud.opencode.base.image.exception.ImageValidationException
Create an image validation exception with error code 创建带错误码的图片验证异常
ImageValidationException(String, Throwable) - Constructor for exception class cloud.opencode.base.image.exception.ImageValidationException
Create an image validation exception with cause 创建带原因的图片验证异常
ImageValidator - Class in cloud.opencode.base.image.validation
Image Validator 图片验证器
ImageWatermark - Record Class in cloud.opencode.base.image.watermark
Image Watermark 图片水印
ImageWatermark(BufferedImage, Position, float, int) - Constructor for record class cloud.opencode.base.image.watermark.ImageWatermark
Compact constructor with validation 紧凑构造函数(带验证)
ImageWatermark.Builder - Class in cloud.opencode.base.image.watermark
Image Watermark Builder 图片水印构建器
ImageWriteException - Exception Class in cloud.opencode.base.image.exception
Image Write Exception 图片写入异常
ImageWriteException(String) - Constructor for exception class cloud.opencode.base.image.exception.ImageWriteException
Create an image write exception 创建图片写入异常
ImageWriteException(String, Throwable) - Constructor for exception class cloud.opencode.base.image.exception.ImageWriteException
Create an image write exception with message and cause 创建带消息和原因的图片写入异常
ImageWriteException(Path) - Constructor for exception class cloud.opencode.base.image.exception.ImageWriteException
Create an image write exception with path 创建带路径的图片写入异常
ImageWriteException(Path, Throwable) - Constructor for exception class cloud.opencode.base.image.exception.ImageWriteException
Create an image write exception with path and cause 创建带路径和原因的图片写入异常
INVALID_DIMENSIONS - Enum constant in enum class cloud.opencode.base.image.exception.ImageErrorCode
Invalid dimensions | 无效尺寸
INVALID_IMAGE - Enum constant in enum class cloud.opencode.base.image.exception.ImageErrorCode
Invalid image | 无效图片文件
INVALID_PARAMETERS - Enum constant in enum class cloud.opencode.base.image.exception.ImageErrorCode
Invalid parameters | 无效参数
IO_ERROR - Enum constant in enum class cloud.opencode.base.image.exception.ImageErrorCode
IO error | IO错误
isAllowedExtension(String) - Static method in class cloud.opencode.base.image.security.SafePathUtil
Check if extension is allowed 检查扩展名是否允许
isAvailable() - Method in enum class cloud.opencode.base.image.ImageFormat
Check if this format is available at runtime 检查此格式在运行时是否可用
isBottom() - Method in enum class cloud.opencode.base.image.Position
Check if position is at the bottom 检查位置是否在底部
isCenterHorizontal() - Method in enum class cloud.opencode.base.image.Position
Check if position is centered horizontally 检查位置是否水平居中
isCenterVertical() - Method in enum class cloud.opencode.base.image.Position
Check if position is centered vertically 检查位置是否垂直居中
isLandscape() - Method in record class cloud.opencode.base.image.ImageInfo
Check if image is landscape orientation 检查图片是否为横向
isLeft() - Method in enum class cloud.opencode.base.image.Position
Check if position is on the left 检查位置是否在左侧
isPortrait() - Method in record class cloud.opencode.base.image.ImageInfo
Check if image is portrait orientation 检查图片是否为纵向
isRight() - Method in enum class cloud.opencode.base.image.Position
Check if position is on the right 检查位置是否在右侧
isSafePath(Path, Path) - Static method in class cloud.opencode.base.image.security.SafePathUtil
Check if path is safe (within base directory) 检查路径是否安全(在基础目录内)
isSquare() - Method in record class cloud.opencode.base.image.ImageInfo
Check if image is square 检查图片是否为正方形
isSupported(String) - Static method in enum class cloud.opencode.base.image.ImageFormat
Check if extension is supported 检查扩展名是否支持
isSupported(String) - Static method in class cloud.opencode.base.image.OpenImage
Check if format is supported 检查格式是否支持
isTop() - Method in enum class cloud.opencode.base.image.Position
Check if position is at the top 检查位置是否在顶部
isValidImage(byte[]) - Static method in class cloud.opencode.base.image.validation.ImageValidator
Check if bytes are a valid image 检查字节数组是否为有效图片
isValidImage(Path) - Static method in class cloud.opencode.base.image.OpenImage
Check if file is a valid image 检查文件是否为有效图片
isValidImage(Path) - Static method in class cloud.opencode.base.image.validation.ImageValidator
Check if file is a valid image 检查文件是否为有效图片
isWebPAvailable() - Static method in enum class cloud.opencode.base.image.ImageFormat
Check if WebP support is available at runtime 检查运行时是否支持 WebP

J

JPEG - Enum constant in enum class cloud.opencode.base.image.ImageFormat
JPEG format | JPEG格式
JPG - Enum constant in enum class cloud.opencode.base.image.ImageFormat
JPG format (alias for JPEG) | JPG格式(JPEG别名)

M

MAGIC_NUMBER_MISMATCH - Enum constant in enum class cloud.opencode.base.image.exception.ImageErrorCode
Magic number mismatch | 文件魔数不匹配
margin() - Method in record class cloud.opencode.base.image.watermark.ImageWatermark
Returns the value of the margin record component.
margin() - Method in record class cloud.opencode.base.image.watermark.TextWatermark
Returns the value of the margin record component.
margin() - Method in interface cloud.opencode.base.image.watermark.Watermark
Get margin from edge 获取边缘间距
margin(int) - Method in class cloud.opencode.base.image.watermark.ImageWatermark.Builder
Set margin 设置边距
margin(int) - Method in class cloud.opencode.base.image.watermark.TextWatermark.Builder
Set margin 设置边距
maxConcurrent(int) - Method in class cloud.opencode.base.image.security.SafeImageService.Builder
Set maximum concurrent operations 设置最大并发操作数
maxDimensions(int, int) - Method in class cloud.opencode.base.image.security.SafeImageService.Builder
Set maximum dimensions 设置最大尺寸
maxFileSize(long) - Method in class cloud.opencode.base.image.security.SafeImageService.Builder
Set maximum file size 设置最大文件大小
maxHeight(int) - Method in class cloud.opencode.base.image.security.SafeImageService.Builder
Set maximum height 设置最大高度
maxWidth(int) - Method in class cloud.opencode.base.image.security.SafeImageService.Builder
Set maximum width 设置最大宽度

O

of(byte[]) - Static method in class cloud.opencode.base.image.thumbnail.ThumbnailBuilder
Create thumbnail builder from bytes 从字节数组创建缩略图构建器
of(Image) - Static method in class cloud.opencode.base.image.thumbnail.ThumbnailBuilder
Create thumbnail builder from Image 从Image创建缩略图构建器
of(BufferedImage) - Static method in class cloud.opencode.base.image.thumbnail.ThumbnailBuilder
Create thumbnail builder from BufferedImage 从BufferedImage创建缩略图构建器
of(BufferedImage) - Static method in record class cloud.opencode.base.image.watermark.ImageWatermark
Create simple image watermark 创建简单图片水印
of(BufferedImage, Position) - Static method in record class cloud.opencode.base.image.watermark.ImageWatermark
Create image watermark with position 创建带位置的图片水印
of(BufferedImage, Position, float) - Static method in record class cloud.opencode.base.image.watermark.ImageWatermark
Create image watermark with position and opacity 创建带位置和透明度的图片水印
of(String) - Static method in record class cloud.opencode.base.image.watermark.TextWatermark
Create simple text watermark 创建简单文字水印
of(String, Position) - Static method in record class cloud.opencode.base.image.watermark.TextWatermark
Create text watermark with position 创建带位置的文字水印
of(String, Position, Font) - Static method in record class cloud.opencode.base.image.watermark.TextWatermark
Create text watermark with position and font 创建带位置和字体的文字水印
of(Path) - Static method in class cloud.opencode.base.image.thumbnail.ThumbnailBuilder
Create thumbnail builder from path 从路径创建缩略图构建器
opacity() - Method in record class cloud.opencode.base.image.watermark.ImageWatermark
Returns the value of the opacity record component.
opacity() - Method in record class cloud.opencode.base.image.watermark.TextWatermark
Returns the value of the opacity record component.
opacity() - Method in interface cloud.opencode.base.image.watermark.Watermark
Get watermark opacity 获取水印透明度
opacity(float) - Method in class cloud.opencode.base.image.watermark.ImageWatermark.Builder
Set opacity 设置透明度
opacity(float) - Method in class cloud.opencode.base.image.watermark.TextWatermark.Builder
Set opacity 设置透明度
OpenImage - Class in cloud.opencode.base.image
OpenImage 图片处理工具类
OUT_OF_MEMORY - Enum constant in enum class cloud.opencode.base.image.exception.ImageErrorCode
Out of memory | 内存不足
outOfMemory() - Static method in exception class cloud.opencode.base.image.exception.ImageResourceException
Create exception for out of memory 创建内存不足的异常
output(Path) - Method in class cloud.opencode.base.image.thumbnail.ThumbnailBuilder
Set output path 设置输出路径

P

pixels() - Method in record class cloud.opencode.base.image.ImageInfo
Get total pixels 获取总像素数
PNG - Enum constant in enum class cloud.opencode.base.image.ImageFormat
PNG format | PNG格式
position() - Method in record class cloud.opencode.base.image.watermark.ImageWatermark
Returns the value of the position record component.
position() - Method in record class cloud.opencode.base.image.watermark.TextWatermark
Returns the value of the position record component.
position() - Method in interface cloud.opencode.base.image.watermark.Watermark
Get watermark position 获取水印位置
position(Position) - Method in class cloud.opencode.base.image.watermark.ImageWatermark.Builder
Set position 设置位置
position(Position) - Method in class cloud.opencode.base.image.watermark.TextWatermark.Builder
Set position 设置位置
Position - Enum Class in cloud.opencode.base.image
Position 位置枚举
process(Image, ImageOperation) - Method in class cloud.opencode.base.image.security.SafeImageService
Process image with operation 使用操作处理图片

Q

quality(float) - Method in class cloud.opencode.base.image.thumbnail.ThumbnailBuilder
Set output quality (for JPEG) 设置输出质量(用于JPEG)

R

read(byte[]) - Static method in class cloud.opencode.base.image.OpenImage
Read image from byte array 从字节数组读取图片
read(byte[]) - Method in class cloud.opencode.base.image.security.SafeImageService
Read image safely from bytes 从字节数组安全读取图片
read(InputStream) - Static method in class cloud.opencode.base.image.OpenImage
Read image from input stream 从输入流读取图片
read(Path) - Static method in class cloud.opencode.base.image.OpenImage
Read image from path 从路径读取图片
read(Path) - Method in class cloud.opencode.base.image.security.SafeImageService
Read image safely from path 从路径安全读取图片
READ_FAILED - Enum constant in enum class cloud.opencode.base.image.exception.ImageErrorCode
Image read failed | 图片读取失败
readBufferedImage(Path) - Static method in class cloud.opencode.base.image.OpenImage
Read BufferedImage directly from path 直接从路径读取BufferedImage
resize(int, int) - Method in class cloud.opencode.base.image.Image
Resize to exact dimensions 调整到精确尺寸
resize(Path, Path, int, int) - Static method in class cloud.opencode.base.image.OpenImage
Quick resize operation 快速调整尺寸操作
RESIZE_FAILED - Enum constant in enum class cloud.opencode.base.image.exception.ImageErrorCode
Resize failed | 缩放失败
resizeToFit(int, int) - Method in class cloud.opencode.base.image.Image
Resize maintaining aspect ratio 保持宽高比调整尺寸
RESOURCE_UNAVAILABLE - Enum constant in enum class cloud.opencode.base.image.exception.ImageErrorCode
Resource unavailable | 资源不可用
rotate(double) - Method in class cloud.opencode.base.image.Image
Rotate by degrees 按角度旋转
rotate(Path, Path, double) - Static method in class cloud.opencode.base.image.OpenImage
Quick rotate operation 快速旋转操作
ROTATE_FAILED - Enum constant in enum class cloud.opencode.base.image.exception.ImageErrorCode
Rotate failed | 旋转失败
rotate180() - Method in class cloud.opencode.base.image.Image
Rotate 180 degrees 旋转180度
rotate270() - Method in class cloud.opencode.base.image.Image
Rotate 270 degrees (90 counter-clockwise) 旋转270度(逆时针90度)
rotate90() - Method in class cloud.opencode.base.image.Image
Rotate 90 degrees clockwise 顺时针旋转90度

S

SafeImageService - Class in cloud.opencode.base.image.security
Safe Image Service 安全图片服务
SafeImageService(long, int, int, Duration, int) - Constructor for class cloud.opencode.base.image.security.SafeImageService
Create safe image service 创建安全图片服务
SafeImageService.Builder - Class in cloud.opencode.base.image.security
Safe Image Service Builder 安全图片服务构建器
SafePathUtil - Class in cloud.opencode.base.image.security
Safe Path Util 安全路径工具类
sanitizeFilename(String) - Static method in class cloud.opencode.base.image.security.SafePathUtil
Sanitize filename for safe storage 清理文件名以安全存储
save(Image, Path, Path) - Method in class cloud.opencode.base.image.security.SafeImageService
Save image safely 安全保存图片
save(Path) - Method in class cloud.opencode.base.image.Image
Save to path 保存到路径
save(Path) - Method in class cloud.opencode.base.image.thumbnail.ThumbnailBuilder
Build and save to path 构建并保存到路径
save(Path, ImageFormat) - Method in class cloud.opencode.base.image.Image
Save to path with format 保存到路径(指定格式)
scale(double) - Method in class cloud.opencode.base.image.Image
Scale by percentage 按百分比缩放
scaleToHeight(int) - Method in class cloud.opencode.base.image.Image
Scale to fit height 缩放以适应高度
scaleToWidth(int) - Method in class cloud.opencode.base.image.Image
Scale to fit width 缩放以适应宽度
size(int, int) - Method in class cloud.opencode.base.image.thumbnail.ThumbnailBuilder
Set thumbnail size 设置缩略图尺寸
source(Image) - Method in class cloud.opencode.base.image.thumbnail.ThumbnailBuilder
Set source image from Image 从Image设置源图片
source(Path) - Method in class cloud.opencode.base.image.thumbnail.ThumbnailBuilder
Set source image from path 从路径设置源图片
supportsTransparency() - Method in enum class cloud.opencode.base.image.ImageFormat
Check if format supports transparency 检查格式是否支持透明度

T

text() - Method in record class cloud.opencode.base.image.watermark.TextWatermark
Returns the value of the text record component.
text(String) - Method in class cloud.opencode.base.image.watermark.TextWatermark.Builder
Set text 设置文字
TextWatermark - Record Class in cloud.opencode.base.image.watermark
Text Watermark 文字水印
TextWatermark(String, Position, Font, Color, float, int) - Constructor for record class cloud.opencode.base.image.watermark.TextWatermark
Compact constructor with validation 紧凑构造函数(带验证)
TextWatermark.Builder - Class in cloud.opencode.base.image.watermark
Text Watermark Builder 文字水印构建器
thumbnail() - Static method in class cloud.opencode.base.image.OpenImage
Create a thumbnail builder 创建缩略图构建器
thumbnail(Path, Path, int) - Static method in class cloud.opencode.base.image.OpenImage
Quick thumbnail creation 快速创建缩略图
ThumbnailBuilder - Class in cloud.opencode.base.image.thumbnail
Thumbnail Builder 缩略图构建器
ThumbnailBuilder() - Constructor for class cloud.opencode.base.image.thumbnail.ThumbnailBuilder
Create empty thumbnail builder 创建空的缩略图构建器
ThumbnailBuilder(BufferedImage) - Constructor for class cloud.opencode.base.image.thumbnail.ThumbnailBuilder
Create thumbnail builder from BufferedImage 从BufferedImage创建缩略图构建器
timeout(Duration) - Method in class cloud.opencode.base.image.security.SafeImageService.Builder
Set operation timeout 设置操作超时时间
TIMEOUT - Enum constant in enum class cloud.opencode.base.image.exception.ImageErrorCode
Processing timeout | 处理超时
toBase64() - Method in class cloud.opencode.base.image.Image
Convert to Base64 string 转换为Base64字符串
toBase64(ImageFormat) - Method in class cloud.opencode.base.image.Image
Convert to Base64 string with format 转换为Base64字符串(指定格式)
toBytes() - Method in class cloud.opencode.base.image.Image
Convert to byte array 转换为字节数组
toBytes() - Method in class cloud.opencode.base.image.thumbnail.ThumbnailBuilder
Build and return as bytes 构建并返回字节数组
toBytes(ImageFormat) - Method in class cloud.opencode.base.image.Image
Convert to byte array with format 转换为字节数组(指定格式)
toBytes(BufferedImage, ImageFormat) - Static method in class cloud.opencode.base.image.OpenImage
Convert image to byte array 将图片转换为字节数组
toBytes(Path) - Static method in class cloud.opencode.base.image.OpenImage
Convert image from path to byte array 将路径中的图片转换为字节数组
toImage() - Method in class cloud.opencode.base.image.thumbnail.ThumbnailBuilder
Build and return as Image wrapper 构建并返回Image包装器
TOO_MANY_REQUESTS - Enum constant in enum class cloud.opencode.base.image.exception.ImageErrorCode
Too many requests | 请求过多
tooManyRequests() - Static method in exception class cloud.opencode.base.image.exception.ImageResourceException
Create exception for too many requests 创建请求过多的异常
TOP_CENTER - Enum constant in enum class cloud.opencode.base.image.Position
Top center | 顶部居中
TOP_LEFT - Enum constant in enum class cloud.opencode.base.image.Position
Top left corner | 左上角
TOP_RIGHT - Enum constant in enum class cloud.opencode.base.image.Position
Top right corner | 右上角
toString() - Method in record class cloud.opencode.base.image.ImageInfo
Returns a string representation of this record class.
toString() - Method in record class cloud.opencode.base.image.watermark.ImageWatermark
Returns a string representation of this record class.
toString() - Method in record class cloud.opencode.base.image.watermark.TextWatermark
Returns a string representation of this record class.

U

UNKNOWN - Enum constant in enum class cloud.opencode.base.image.exception.ImageErrorCode
Unknown error | 未知错误
unsupported(String) - Static method in exception class cloud.opencode.base.image.exception.ImageFormatException
Create exception for unsupported format 创建不支持格式的异常
UNSUPPORTED_FORMAT - Enum constant in enum class cloud.opencode.base.image.exception.ImageErrorCode
Unsupported format | 不支持的图片格式

V

validate(byte[]) - Static method in class cloud.opencode.base.image.validation.ImageValidator
Validate image bytes 验证图片字节数组
validate(byte[], long, int, int) - Static method in class cloud.opencode.base.image.validation.ImageValidator
Validate image bytes with limits 验证图片字节数组(带限制)
validate(Path) - Static method in class cloud.opencode.base.image.validation.ImageValidator
Validate image file 验证图片文件
validate(Path, long, int, int) - Static method in class cloud.opencode.base.image.validation.ImageValidator
Validate image file with limits 验证图片文件(带限制)
validateExtensionMatchesContent(Path) - Static method in class cloud.opencode.base.image.validation.ImageValidator
Validate file extension matches content 验证文件扩展名是否与内容匹配
validatePath(Path) - Static method in class cloud.opencode.base.image.security.SafePathUtil
Validate path for image operations 验证图片操作的路径
validatePath(Path, Path) - Static method in class cloud.opencode.base.image.security.SafePathUtil
Validate path within base directory 在基础目录内验证路径
VALIDATION_FAILED - Enum constant in enum class cloud.opencode.base.image.exception.ImageErrorCode
Validation failed | 验证失败
valueOf(String) - Static method in enum class cloud.opencode.base.image.exception.ImageErrorCode
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class cloud.opencode.base.image.ImageFormat
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class cloud.opencode.base.image.Position
Returns the enum constant of this class with the specified name.
values() - Static method in enum class cloud.opencode.base.image.exception.ImageErrorCode
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class cloud.opencode.base.image.ImageFormat
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class cloud.opencode.base.image.Position
Returns an array containing the constants of this enum class, in the order they are declared.

W

watermark(ImageWatermark) - Method in class cloud.opencode.base.image.Image
Add image watermark 添加图片水印
watermark(TextWatermark) - Method in class cloud.opencode.base.image.Image
Add text watermark 添加文字水印
watermark(BufferedImage, Position) - Method in class cloud.opencode.base.image.Image
Add image watermark at position 在指定位置添加图片水印
watermark(String, Position) - Method in class cloud.opencode.base.image.Image
Add text watermark at position 在指定位置添加文字水印
Watermark - Interface in cloud.opencode.base.image.watermark
Watermark 水印接口
WATERMARK_FAILED - Enum constant in enum class cloud.opencode.base.image.exception.ImageErrorCode
Watermark failed | 水印失败
WEBP - Enum constant in enum class cloud.opencode.base.image.ImageFormat
WebP format | WebP格式
width() - Method in record class cloud.opencode.base.image.ImageInfo
Returns the value of the width record component.
width(int) - Method in class cloud.opencode.base.image.thumbnail.ThumbnailBuilder
Set thumbnail width (height auto-calculated) 设置缩略图宽度(高度自动计算)
withImage(BufferedImage) - Method in record class cloud.opencode.base.image.watermark.ImageWatermark
Create copy with different image 创建使用不同图片的副本
withMargin(int) - Method in record class cloud.opencode.base.image.watermark.ImageWatermark
Create copy with different margin 创建使用不同边距的副本
withOpacity(float) - Method in record class cloud.opencode.base.image.watermark.ImageWatermark
Create copy with different opacity 创建使用不同透明度的副本
withOpacity(float) - Method in record class cloud.opencode.base.image.watermark.TextWatermark
Create copy with different opacity 创建使用不同透明度的副本
withPosition(Position) - Method in record class cloud.opencode.base.image.watermark.ImageWatermark
Create copy with different position 创建使用不同位置的副本
withPosition(Position) - Method in record class cloud.opencode.base.image.watermark.TextWatermark
Create copy with different position 创建使用不同位置的副本
withText(String) - Method in record class cloud.opencode.base.image.watermark.TextWatermark
Create copy with different text 创建使用不同文字的副本
withTimeout(ImageOperation, long) - Static method in interface cloud.opencode.base.image.security.ImageOperation
Wrap operation with timeout handling 使用超时处理包装操作
write(BufferedImage, OutputStream, ImageFormat) - Static method in class cloud.opencode.base.image.OpenImage
Write image to output stream 写入图片到输出流
write(BufferedImage, Path) - Static method in class cloud.opencode.base.image.OpenImage
Write image to path 写入图片到路径
write(BufferedImage, Path, ImageFormat) - Static method in class cloud.opencode.base.image.OpenImage
Write image to path with format 写入图片到路径(指定格式)
WRITE_FAILED - Enum constant in enum class cloud.opencode.base.image.exception.ImageErrorCode
Image write failed | 图片写入失败
writeTo(OutputStream) - Method in class cloud.opencode.base.image.Image
Write to output stream 写入输出流
writeTo(OutputStream, ImageFormat) - Method in class cloud.opencode.base.image.Image
Write to output stream with format 写入输出流(指定格式)
A B C D E F G H I J M O P Q R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form