public class Scale extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Scale.ScaleType |
| Constructor and Description |
|---|
Scale() |
| Modifier and Type | Method and Description |
|---|---|
static Pix |
scale(Pix pixs,
float scale)
Scales the Pix to specified scale.
|
static Pix |
scale(Pix pixs,
float scaleX,
float scaleY)
Scales the Pix to specified x and y scale.
|
static Pix |
scaleToSize(Pix pixs,
int width,
int height,
Scale.ScaleType type)
Scales the Pix to a specified width and height using a specified scaling
type (fill, stretch, etc.).
|
public static Pix scaleToSize(Pix pixs, int width, int height, Scale.ScaleType type)
pixs - width - height - type - public static Pix scale(Pix pixs, float scale)
pixs - the source Pixscale - dimension scaling factorpublic static Pix scale(Pix pixs, float scaleX, float scaleY)
pixs - the source PixscaleX - x-dimension (width) scaling factorscaleY - y-dimension (height) scaling factorCopyright © 2014. All rights reserved.