public class AWTScaleService extends Object implements IScale
Constructor and Description |
---|
AWTScaleService() |
Modifier and Type | Method and Description |
---|---|
BufferedImage |
scaleBufferedImage(BufferedImage image,
float xScale,
float yScale)
Scales a buffered image using defined X and Y axis scale factors.
|
public BufferedImage scaleBufferedImage(BufferedImage image, float xScale, float yScale)
IScale
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.scaleBufferedImage
in interface IScale
image
- the buffered image to scale.xScale
- X-axis scale factor.yScale
- Y-axis scale factor.
Version: 5.2.0-ice35-b12
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.