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.).
|
static Pix |
scaleWithoutSharpening(Pix pixs,
float scale)
Scales the Pix to the specified scale without sharpening.
|
public static Pix scaleToSize(Pix pixs, int width, int height, Scale.ScaleType type)
pixs
- Source pix imagewidth
- The desired width to scale toheight
- The desired height to scale totype
- The desired scaling typepublic static Pix scale(Pix pixs, float scale)
pixs
- the source Pixscale
- dimension scaling factorpublic static Pix scaleWithoutSharpening(Pix pixs, float scale)
pixs
- the source Pix (1, 2, 4, 8, 16 and 32 bpp)scale
- scaling factor for both X and Ypublic static Pix scale(Pix pixs, float scaleX, float scaleY)
pixs
- the source PixscaleX
- x-dimension (width) scaling factorscaleY
- y-dimension (height) scaling factor