public class PhotoResizer extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_RESIZE_ON_CREATE |
static boolean |
PROPERTY_RESIZE_ON_CREATE_DEFAULT |
static String |
PROPERTY_RESIZE_ON_LOAD |
static boolean |
PROPERTY_RESIZE_ON_LOAD_DEFAULT |
static String |
PROPERTY_TARGETDIMENSION |
static int |
PROPERTY_TARGETDIMENSION_DEFAULT |
Constructor and Description |
---|
PhotoResizer() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
cropAndShrink(byte[] bytes,
int targetDimension,
ImageWriter iw) |
static void |
resizeAvatar(org.dom4j.Element vCardElement) |
public static final String PROPERTY_RESIZE_ON_LOAD
public static final boolean PROPERTY_RESIZE_ON_LOAD_DEFAULT
public static final String PROPERTY_RESIZE_ON_CREATE
public static final boolean PROPERTY_RESIZE_ON_CREATE_DEFAULT
public static final String PROPERTY_TARGETDIMENSION
public static final int PROPERTY_TARGETDIMENSION_DEFAULT
public static void resizeAvatar(org.dom4j.Element vCardElement)
public static byte[] cropAndShrink(byte[] bytes, int targetDimension, ImageWriter iw)
Copyright © 2003–2020 Ignite Realtime. All rights reserved.