public class Favicon
extends java.lang.Object
| Constructor and Description |
|---|
Favicon() |
| Modifier and Type | Method and Description |
|---|---|
static Favicon |
create(java.awt.image.BufferedImage image)
Creates a favicon from an image.
|
static Favicon |
create(java.lang.String encodedString)
Deprecated.
Use #create(java.awt.image.BufferedImage) instead
|
static com.google.gson.TypeAdapter<Favicon> |
getFaviconTypeAdapter() |
public static com.google.gson.TypeAdapter<Favicon> getFaviconTypeAdapter()
public static Favicon create(java.awt.image.BufferedImage image)
image - the image to create onjava.lang.IllegalArgumentException - if the favicon is larger than
Short.MAX_VALUE or not of dimensions 64x64 pixels.@Deprecated public static Favicon create(java.lang.String encodedString)
encodedString - a base64 mime encoded PNG stringCopyright © 2015-2018 WaterfallMC. All Rights Reserved.