public class ImageUtils
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
SERVER_RENDER_FAULT |
构造器和说明 |
---|
ImageUtils() |
限定符和类型 | 方法和说明 |
---|---|
static java.awt.image.BufferedImage |
base64Decoder(java.lang.String base64)
已过时。
|
static java.awt.image.BufferedImage |
cutImage(java.io.InputStream input,
java.lang.String type,
int x,
int y,
int width,
int height) |
static java.lang.String |
generateDefaultImage(java.lang.String response) |
static java.awt.image.BufferedImage |
generateImage(Base64Image base64Image) |
static java.awt.image.BufferedImage |
generateImage(java.lang.String imageStr) |
static java.awt.image.BufferedImage |
generateSlotImage(java.lang.String imageStr)
用base64生成图片
|
static java.io.InputStream |
getImageStream(java.awt.image.BufferedImage bi,
java.lang.String imageType) |
static java.awt.image.BufferedImage |
merge(java.util.Map<java.awt.geom.Point2D,java.awt.image.BufferedImage> point2DImageMap,
java.lang.String imageType)
图片拼接
|
static java.awt.image.BufferedImage |
reduceImage(java.awt.image.BufferedImage srcImg,
int newWidth,
int newHeight) |
static java.awt.image.BufferedImage |
resizeImage(java.awt.image.BufferedImage image,
int newWidth,
int newHeight)
调整为返回指定大小的图片
|
public static final java.lang.String SERVER_RENDER_FAULT
public static java.lang.String generateDefaultImage(java.lang.String response)
public static java.awt.image.BufferedImage generateImage(Base64Image base64Image)
public static java.awt.image.BufferedImage resizeImage(java.awt.image.BufferedImage image, int newWidth, int newHeight)
newWidth
- newHeight
- public static java.awt.image.BufferedImage generateImage(java.lang.String imageStr)
public static java.awt.image.BufferedImage generateSlotImage(java.lang.String imageStr)
imageStr
- @Deprecated public static java.awt.image.BufferedImage base64Decoder(java.lang.String base64)
public static java.io.InputStream getImageStream(java.awt.image.BufferedImage bi, java.lang.String imageType)
public static java.awt.image.BufferedImage cutImage(java.io.InputStream input, java.lang.String type, int x, int y, int width, int height) throws java.io.IOException
java.io.IOException
public static java.awt.image.BufferedImage merge(java.util.Map<java.awt.geom.Point2D,java.awt.image.BufferedImage> point2DImageMap, java.lang.String imageType)
point2DImageMap
- 要拼接的imageimageType
- 图片类型public static java.awt.image.BufferedImage reduceImage(java.awt.image.BufferedImage srcImg, int newWidth, int newHeight)