Uses of Class
cloud.opencode.base.image.Image
Packages that use Image
Package
Description
-
Uses of Image in cloud.opencode.base.image
Methods in cloud.opencode.base.image that return ImageModifier and TypeMethodDescriptionImage.adaptiveThreshold(int blockSize, double c) Apply adaptive threshold (MEAN method) 应用自适应阈值(均值方法)Image.autoOrient(int orientation) Auto-orient based on EXIF orientation 根据 EXIF 方向信息自动旋转Image.bilateralFilter()Apply bilateral filter with default parameters 应用双边滤波,使用默认参数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 ImageOpenImage.createBlank(int width, int height) Create a blank image 创建空白图片static ImageOpenImage.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 从中心按指定宽高比裁剪Image.equalizeHistogram()Apply histogram equalization 应用直方图均衡化Image.flipHorizontal()Flip horizontally 水平翻转Image.flipVertical()Flip vertically 垂直翻转Image.format(ImageFormat format) Set the image format 设置图片格式static ImageImage.from(byte[] bytes) Create image from bytes 从字节数组创建图片static ImageImage.from(BufferedImage image) Create image from BufferedImage 从BufferedImage创建图片static ImageCreate image from path 从路径创建图片static ImageOpenImage.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 应用中值滤波Image.otsuThreshold()Apply Otsu automatic thresholding 应用 Otsu 自动阈值Image.overlay(BufferedImage overlay, int x, int y, float opacity) Overlay another image at the specified position and opacity 在指定位置以指定透明度叠加另一张图片Add independent padding for each edge of the image 为图片的每条边添加独立的内边距Add uniform padding around the image 在图片四周添加等距内边距static ImageOpenImage.read(byte[] bytes) Read image from byte array 从字节数组读取图片static ImageOpenImage.read(InputStream in) Read image from input stream 从输入流读取图片static ImageRead 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 边缘检测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 在指定位置添加图片水印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 ImageModifier and TypeMethodDescriptionstatic ResponsiveBuilderCreate a ResponsiveBuilder from an Image instance. -
Uses of Image in cloud.opencode.base.image.security
Methods in cloud.opencode.base.image.security that return ImageModifier and TypeMethodDescriptionSafeImageService.process(Image image, ImageOperation operation) Process image with operation 使用操作处理图片SafeImageService.read(byte[] bytes) Read image safely from bytes 从字节数组安全读取图片Read image safely from path 从路径安全读取图片Methods in cloud.opencode.base.image.security with parameters of type Image -
Uses of Image in cloud.opencode.base.image.thumbnail
Methods in cloud.opencode.base.image.thumbnail that return ImageModifier and TypeMethodDescriptionThumbnailBuilder.toImage()Build and return as Image wrapper 构建并返回Image包装器Methods in cloud.opencode.base.image.thumbnail with parameters of type ImageModifier and TypeMethodDescriptionstatic ThumbnailBuilderCreate thumbnail builder from Image 从Image创建缩略图构建器Set source image from Image 从Image设置源图片