|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IScale
Provides methods for performing scaling (change of the image size through interpolation or other means) on BufferedImages.
Method Summary | |
---|---|
BufferedImage |
scaleBufferedImage(BufferedImage image,
float xScale,
float yScale)
Scales a buffered image using defined X and Y axis scale factors. |
Method Detail |
---|
BufferedImage scaleBufferedImage(BufferedImage image, float xScale, float yScale)
If you wanted to take a 512x512 image and scale it to 256x256 you would use an X and Y scale factor of 0.5.
NOTE: The X and Y scale factors do not have to be equal.
image
- the buffered image to scale.xScale
- X-axis scale factor.yScale
- Y-axis scale factor.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: Beta-4.2.0-r7571-b29
Copyright © 2009 The University of Dundee. All Rights Reserved.