ome.logic
Class AWTScaleService
java.lang.Object
ome.logic.AWTScaleService
- All Implemented Interfaces:
- IScale, ServiceInterface
public class AWTScaleService
- extends Object
- implements IScale
Provides methods for scaling buffered images.
- Since:
- 3.0
- Version:
- 3.0 (Internal version: $Rev: 2588 $ $Date: 2008-07-03 09:20:35 +0100 (Thu, 03 Jul 2008) $)
- Author:
- Chris Allan callan@blackcat.ca
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AWTScaleService
public AWTScaleService()
scaleBufferedImage
public BufferedImage scaleBufferedImage(BufferedImage image,
float xScale,
float yScale)
- Description copied from interface:
IScale
- Scales a buffered image using defined X and Y axis scale factors. For
example:
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.
- Specified by:
scaleBufferedImage
in interface IScale
- Parameters:
image
- the buffered image to scale.xScale
- X-axis scale factor.yScale
- Y-axis scale factor.
- Returns:
- a scaled buffered image.
OmeroJava Api
Version: Beta-4.2.0-r7571-b29
Copyright © 2009 The University of Dundee. All Rights Reserved.