-
public class ScaleImage scaling methods.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumScale.ScaleType
-
Method Summary
Modifier and Type Method Description static PixscaleToSize(Pix pixs, int width, int height, Scale.ScaleType type)Scales the Pix to a specified width and height using a specified scalingtype (fill, stretch, etc.). static Pixscale(Pix pixs, float scale)Scales the Pix to specified scale. static PixscaleWithoutSharpening(Pix pixs, float scale)Scales the Pix to the specified scale without sharpening. static Pixscale(Pix pixs, float scaleX, float scaleY)Scales the Pix to specified x and y scale. -
-
Method Detail
-
scaleToSize
static Pix scaleToSize(Pix pixs, int width, int height, Scale.ScaleType type)
Scales the Pix to a specified width and height using a specified scalingtype (fill, stretch, etc.). Returns a scaled image or a clone of the Pixif no scaling is required.
- Parameters:
pixs- Source pix imagewidth- The desired width to scale toheight- The desired height to scale totype- The desired scaling type
-
scale
static Pix scale(Pix pixs, float scale)
Scales the Pix to specified scale. If no scaling is required, returns aclone of the source Pix.
- Parameters:
pixs- the source Pixscale- dimension scaling factor
-
scaleWithoutSharpening
static Pix scaleWithoutSharpening(Pix pixs, float scale)
Scales the Pix to the specified scale without sharpening.
- Parameters:
pixs- the source Pix (1, 2, 4, 8, 16 and 32 bpp)scale- scaling factor for both X and Y
-
-
-
-