public class NineBlockIdenticonRenderer2 extends Object implements IdenticonRenderer
| Constructor and Description |
|---|
NineBlockIdenticonRenderer2() |
| Modifier and Type | Method and Description |
|---|---|
Color |
getBackgroundColor() |
float |
getPatchSize() |
BufferedImage |
render(BigInteger code,
int size)
Returns rendered identicon image for given identicon code.
|
BufferedImage |
render(int code,
int size)
Returns rendered identicon image for given identicon code encoded as a
32-bit signed integer.
|
void |
setBackgroundColor(Color backgroundColor) |
void |
setPatchSize(float size) |
public Color getBackgroundColor()
public float getPatchSize()
public BufferedImage render(BigInteger code, int size)
IdenticonRendererrender in interface IdenticonRenderercode - identicon codesize - image sizepublic BufferedImage render(int code, int size)
IdenticonRendererrender in interface IdenticonRenderercode - identicon codesize - image sizepublic void setBackgroundColor(Color backgroundColor)
public void setPatchSize(float size)