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.compress(float quality) Compress image with quality 按质量压缩图片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.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.grayscale()Convert to grayscale 转换为灰度图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.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.scale(double scale) Scale by percentage 按百分比缩放Image.scaleToHeight(int height) Scale to fit height 缩放以适应高度Image.scaleToWidth(int width) Scale to fit width 缩放以适应宽度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 在指定位置添加文字水印 -
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设置源图片