类 ImageUtils
java.lang.Object
com.xingyuv.captcha.util.ImageUtils
-
字段概要
字段修饰符和类型字段说明private static org.slf4j.Logger滑块底图旋转底图点选文字旋转块滑块 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static voidcacheBootImage(Map<String, String> originalMap, Map<String, String> slidingBlockMap, Map<String, String> picClickMap) static voidcacheImage(String captchaOriginalPathJigsaw, String captchaOriginalPathClick, String captchaOriginalPathRotate) static BufferedImagegetBase64StrToImage(String base64String) base64 字符串转图片getImagesFile(String path) static StringgetImageToBase64Str(BufferedImage templateImage) 图片转base64 字符串static BufferedImagestatic BufferedImagegetResourcesImagesFile(String path) static BufferedImagestatic Stringstatic String
-
字段详细资料
-
logger
private static org.slf4j.Logger logger -
originalRotateCacheMap
旋转底图 -
rotateBlockCacheMap
旋转块 -
originalCacheMap
滑块底图 -
slidingBlockCacheMap
滑块 -
picClickCacheMap
点选文字 -
fileNameMap
-
-
构造器详细资料
-
ImageUtils
public ImageUtils()
-
-
方法详细资料
-
cacheImage
-
cacheBootImage
-
getRotate
-
getRotateBlock
-
getOriginal
-
getSlidingBlock
-
getPicClick
-
getImageToBase64Str
图片转base64 字符串- 参数:
templateImage- templateImage- 返回:
- base64
-
getBase64StrToImage
base64 字符串转图片- 参数:
base64String- base64String- 返回:
- 图片
-
getResourcesImagesFile
-
getImagesFile
-