public final class GraphicUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static float[] |
imageSize(float picWidth,
float picHeight,
float scaleFactor,
int width,
int height,
int percent)
Given the original image size, as well as width, height, percent parameters,
can compute the final image size.
|
public static float[] imageSize(float picWidth,
float picHeight,
float scaleFactor,
int width,
int height,
int percent)
picWidth - original image widthpicHeight - original image heightscaleFactor - scale factor to screen DPIwidth - requested width (0: no change)height - requested height (0: no change)percent - requested scale percent (100: no change)