Uses of Class
cloud.opencode.base.image.Image

Packages that use Image
  • Uses of Image in cloud.opencode.base.image

    Methods in cloud.opencode.base.image that return Image
    Modifier and Type
    Method
    Description
    Image.adaptiveThreshold(int blockSize, double c)
    Apply adaptive threshold (MEAN method) 应用自适应阈值(均值方法)
    Image.autoOrient(int orientation)
    Auto-orient based on EXIF orientation 根据 EXIF 方向信息自动旋转
    Apply bilateral filter with default parameters 应用双边滤波,使用默认参数
    Image.border(int thickness, Color color)
    Add a border around the image 在图片外部添加边框
    Image.boxBlur(int kernelSize)
    Apply box blur 应用方框模糊
    Image.brightness(double factor)
    Adjust brightness 调整亮度
    Image.cannyEdge(double lowThreshold, double highThreshold)
    Apply Canny edge detection 应用 Canny 边缘检测
    Image.clahe(double clipLimit, int tileGridSize)
    Apply CLAHE (Contrast Limited Adaptive Histogram Equalization) 应用 CLAHE 自适应局部直方图均衡化
    Image.compress(float quality)
    Compress image with quality 按质量压缩图片
    Image.contrast(double factor)
    Adjust contrast 调整对比度
    Image.convert(ImageFormat targetFormat)
    Convert to specified format 转换到指定格式
    Image.copy()
    Create a copy of this image 创建此图片的副本
    static Image
    OpenImage.createBlank(int width, int height)
    Create a blank image 创建空白图片
    static Image
    OpenImage.createBlank(int width, int height, int color)
    Create a blank image with color 创建带颜色的空白图片
    Image.crop(int x, int y, int width, int height)
    Crop to specified region 裁剪到指定区域
    Image.cropCenter(int width, int height)
    Crop from center 从中心裁剪
    Image.cropSquare()
    Crop to square from center 从中心裁剪为正方形
    Image.cropToAspectRatio(int aspectWidth, int aspectHeight)
    Crop to a specific aspect ratio from center 从中心按指定宽高比裁剪
    Apply histogram equalization 应用直方图均衡化
    Flip horizontally 水平翻转
    Image.flipVertical()
    Flip vertically 垂直翻转
    Image.format(ImageFormat format)
    Set the image format 设置图片格式
    static Image
    Image.from(byte[] bytes)
    Create image from bytes 从字节数组创建图片
    static Image
    Image.from(BufferedImage image)
    Create image from BufferedImage 从BufferedImage创建图片
    static Image
    Image.from(Path path)
    Create image from path 从路径创建图片
    static Image
    OpenImage.fromBase64(String base64)
    Read image from Base64 string 从Base64字符串读取图片
    Image.gamma(double gamma)
    Apply gamma correction 应用伽马校正
    Image.gaussianBlur(double sigma)
    Apply Gaussian blur 应用高斯模糊
    Image.grayscale()
    Convert to grayscale 转换为灰度图
    Image.invert()
    Apply color inversion filter 应用反色滤镜
    Image.medianBlur(int kernelSize)
    Apply median blur 应用中值滤波
    Apply Otsu automatic thresholding 应用 Otsu 自动阈值
    Image.overlay(BufferedImage overlay, int x, int y, float opacity)
    Overlay another image at the specified position and opacity 在指定位置以指定透明度叠加另一张图片
    Image.pad(int top, int right, int bottom, int left, Color color)
    Add independent padding for each edge of the image 为图片的每条边添加独立的内边距
    Image.pad(int padding, Color color)
    Add uniform padding around the image 在图片四周添加等距内边距
    static Image
    OpenImage.read(byte[] bytes)
    Read image from byte array 从字节数组读取图片
    static Image
    OpenImage.read(InputStream in)
    Read image from input stream 从输入流读取图片
    static Image
    OpenImage.read(Path path)
    Read image from path 从路径读取图片
    Image.resize(int width, int height)
    Resize to exact dimensions 调整到精确尺寸
    Image.resizeProgressive(int width, int height)
    Resize using progressive multi-step downscaling for better quality on large reductions 使用渐进式多步缩小,在大幅缩小时获得更好的质量
    Image.resizeToFit(int maxWidth, int maxHeight)
    Resize maintaining aspect ratio 保持宽高比调整尺寸
    Image.rotate(double degrees)
    Rotate by degrees 按角度旋转
    Image.rotate180()
    Rotate 180 degrees 旋转180度
    Image.rotate270()
    Rotate 270 degrees (90 counter-clockwise) 旋转270度(逆时针90度)
    Image.rotate90()
    Rotate 90 degrees clockwise 顺时针旋转90度
    Image.saturation(double factor)
    Adjust saturation 调整饱和度
    Image.scale(double scale)
    Scale by percentage 按百分比缩放
    Image.scaleToHeight(int height)
    Scale to fit height 缩放以适应高度
    Image.scaleToWidth(int width)
    Scale to fit width 缩放以适应宽度
    Image.sepia()
    Apply sepia (nostalgic brown tone) filter 应用怀旧棕褐色滤镜
    Image.sharpen()
    Apply sharpening (Unsharp Mask) with default parameters 应用锐化(非锐化掩模),使用默认参数
    Image.sharpen(double amount)
    Apply sharpening (Unsharp Mask) with custom amount 应用锐化(非锐化掩模),自定义强度
    Image.sobelEdge()
    Apply Sobel edge detection 应用 Sobel 边缘检测
    Image.stripExif(ExifTag... tags)
    Strip EXIF tags (operates on byte-level, re-encodes image) 清除 EXIF 标签(字节级操作,重新编码图像)
    Image.threshold(int value)
    Apply fixed threshold (binary mode) 应用固定阈值(二值模式)
    Image.tiledWatermark(TextWatermark watermark, int spacingX, int spacingY)
    Add tiled text watermark across the image 在图片上平铺文字水印
    Image.watermark(ImageWatermark watermark)
    Add image watermark 添加图片水印
    Image.watermark(TextWatermark watermark)
    Add text watermark 添加文字水印
    Image.watermark(BufferedImage watermarkImage, Position position)
    Add image watermark at position 在指定位置添加图片水印
    Image.watermark(String text, Position position)
    Add text watermark at position 在指定位置添加文字水印
    Image.whiteBalance()
    Apply Gray World white balance 应用灰色世界白平衡
  • Uses of Image in cloud.opencode.base.image.responsive

    Methods in cloud.opencode.base.image.responsive with parameters of type Image
    Modifier and Type
    Method
    Description
    ResponsiveBuilder.of(Image source)
    Create a ResponsiveBuilder from an Image instance.
  • Uses of Image in cloud.opencode.base.image.security

    Modifier and Type
    Method
    Description
    SafeImageService.process(Image image, ImageOperation operation)
    Process image with operation 使用操作处理图片
    SafeImageService.read(byte[] bytes)
    Read image safely from bytes 从字节数组安全读取图片
    SafeImageService.read(Path path)
    Read image safely from path 从路径安全读取图片
    Methods in cloud.opencode.base.image.security with parameters of type Image
    Modifier and Type
    Method
    Description
    SafeImageService.process(Image image, ImageOperation operation)
    Process image with operation 使用操作处理图片
    void
    SafeImageService.save(Image image, Path path, Path baseDir)
    Save image safely 安全保存图片
  • Uses of Image in cloud.opencode.base.image.thumbnail

    Modifier and Type
    Method
    Description
    ThumbnailBuilder.toImage()
    Build and return as Image wrapper 构建并返回Image包装器
    Methods in cloud.opencode.base.image.thumbnail with parameters of type Image
    Modifier and Type
    Method
    Description
    ThumbnailBuilder.of(Image image)
    Create thumbnail builder from Image 从Image创建缩略图构建器
    ThumbnailBuilder.source(Image image)
    Set source image from Image 从Image设置源图片