public abstract class AbstractGenerator extends Object
| 构造器和说明 |
|---|
AbstractGenerator() |
| 限定符和类型 | 方法和说明 |
|---|---|
static BufferedImage |
clip(BufferedImage image,
int radius) |
static Color |
getColor(String hexColor)
Translate the color from hex color code.
|
static com.google.zxing.common.BitMatrix |
redrawBitMatrix(com.google.zxing.common.BitMatrix bitMatrix,
int padding)
In order to completely eliminate the white edges, it must be redraw
BitMatrix, determined by the parameter 'margin'.
|
static BufferedImage |
setRadius(BufferedImage image,
int radius,
int borderSize,
String borderColor,
Codectx.BorderStyle style,
int borderDashGranularity,
int margin)
Sets the border-radius attribute to BufferedImage.
|
public static final Color getColor(String hexColor)
Usage: getColor("#FFFFFF") or getColor("FFFFFF").
hexColor - hex color codepublic static com.google.zxing.common.BitMatrix redrawBitMatrix(com.google.zxing.common.BitMatrix bitMatrix,
int padding)
bitMatrix - An instance of BitMatrix.padding - public static BufferedImage setRadius(BufferedImage image, int radius, int borderSize, String borderColor, Codectx.BorderStyle style, int borderDashGranularity, int margin)
image - An instance of BufferedImage.radius - Attribute value of border-radius.borderSize - borderColor - style - BorderStyle.SOLID || BorderStyle.DASHEDborderDashGranularity - margin - public static BufferedImage clip(BufferedImage image, int radius)
Copyright © 2017. All rights reserved.