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) Adaptive threshold. | 自适应阈值。Image.autoOrient(int orientation) Auto-orient by EXIF orientation tag. | 按 EXIF orientation 自动正向。Image.bilateralFilter()Bilateral filter. | 双边滤波。Image.border(int thickness, int colorArgb) Draw a solid border of the given color. | 绘制纯色边框。Image.boxBlur(int kernelSize) Box (mean) blur. | 均值模糊。Image.brightness(double factor) Brightness. | 亮度。Image.cannyEdge(double lowThreshold, double highThreshold) Canny edge detection. | Canny 边缘检测。Image.clahe(double clipLimit, int tileGridSize) CLAHE histogram equalization. | CLAHE 直方图均衡化。Image.compress(float quality) Compress (JPEG path). | JPEG 压缩。Image.contrast(double factor) Contrast. | 对比度。Image.convert(ImageFormat targetFormat) Convert pixel layout to suit the target format (e.g. drop alpha for JPEG).Image.copy()Make a deep copy. | 深拷贝。static ImageOpenImage.createBlank(int width, int height) Create a blank image (transparent black RGBA_8).static ImageOpenImage.createBlank(int width, int height, int color) Create a blank image filled with the given ARGB color.Image.crop(int x, int y, int width, int height) Crop to rectangle. | 裁剪到矩形。Image.cropCenter(int width, int height) Crop centered to (width, height). | 居中裁剪。Image.cropSquare()Crop to a centered square. | 裁剪为居中正方形。Image.cropToAspectRatio(int aspectWidth, int aspectHeight) Crop to a target aspect ratio centered. | 裁剪为目标宽高比(居中)。Image.equalizeHistogram()Histogram equalization. | 直方图均衡化。Image.flipHorizontal()Flip horizontally. | 水平翻转。Image.flipVertical()Flip vertically. | 垂直翻转。Image.format(ImageFormat format) Set image format 设置图片格式static ImageImage.from(byte[] bytes) Create image from byte array 从字节数组创建图片static ImageCreate image from path 从路径创建图片static ImageOpenImage.fromBase64(String base64) Read image from Base64 string 从Base64字符串读取图片static ImageImage.fromRaster(Raster raster) static ImageImage.fromRaster(Raster raster, ImageFormat format) Image.gamma(double gamma) Gamma correction. | 伽马校正。Image.gaussianBlur(double sigma) Gaussian blur. | 高斯模糊。Image.grayscale()Convert to grayscale. | 转灰度。Image.invert()Invert colors. | 反色。Image.medianBlur(int kernelSize) Median blur. | 中值模糊。Image.otsuThreshold()Otsu's automatic threshold. | 大津法自动阈值。Image.pad(int padding, int colorArgb) Pad uniformly with the given ARGB color. | 用 ARGB 颜色等距填充。Image.pad(int top, int right, int bottom, int left, int colorArgb) Pad with explicit insets. | 按指定内边距填充。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) Progressive resize for higher quality on large downscale. | 大幅缩小时使用渐进缩放保留质量。Image.resizeToFit(int maxWidth, int maxHeight) Resize to fit within (maxWidth, maxHeight) preserving aspect ratio. | 等比缩放到 (maxWidth, maxHeight) 内。Image.rotate(double degrees) Rotate by arbitrary angle (degrees, around center). | 任意角度旋转(绕中心,单位度)。Image.rotate180()Rotate 180 degrees. | 旋转 180°。Image.rotate270()Rotate 270 degrees clockwise. | 顺时针旋转 270°。Image.rotate90()Rotate 90 degrees clockwise. | 顺时针旋转 90°。Image.saturation(double factor) Saturation. | 饱和度。Image.scale(double scale) Scale by uniform factor. | 按统一系数缩放。Image.scaleToHeight(int height) Scale to a target height (preserve aspect). | 缩放到目标高度(保持比例)。Image.scaleToWidth(int width) Scale to a target width (preserve aspect). | 缩放到目标宽度(保持比例)。Image.sepia()Sepia tone. | 棕褐色调。Image.sharpen()Sharpen with default amount. | 默认强度锐化。Image.sharpen(double amount) Sharpen with the given amount. | 指定强度锐化。Image.sobelEdge()Sobel edge detection. | Sobel 边缘检测。No-op stub for legacy EXIF strip API.Image.threshold(int value) Fixed threshold. | 固定阈值。Image.whiteBalance()Auto white balance (gray world). | 灰度世界白平衡。 -
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.thumbnail
Methods in cloud.opencode.base.image.thumbnail that return ImageModifier and TypeMethodDescriptionThumbnailBuilder.toImage()Build the thumbnail and wrap it in anImage.Methods in cloud.opencode.base.image.thumbnail with parameters of type Image