ome.api
Interface IScale

All Superinterfaces:
ServiceInterface
All Known Implementing Classes:
AWTScaleService, JavaImageScalingService

public interface IScale
extends ServiceInterface

Provides methods for performing scaling (change of the image size through interpolation or other means) on BufferedImages.

Since:
3.0
Version:
3.0 (Internal version: $Rev: 1167 $ $Date: 2006-12-15 10:39:34 +0000 (Fri, 15 Dec 2006) $)
Author:
Chris Allan      callan@blackcat.ca

Method Summary
 BufferedImage scaleBufferedImage(BufferedImage image, float xScale, float yScale)
          Scales a buffered image using defined X and Y axis scale factors.
 

Method Detail

scaleBufferedImage

BufferedImage scaleBufferedImage(BufferedImage image,
                                 float xScale,
                                 float yScale)
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.

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: Beta4.2.1-r8614-Beta4.2-b41

Copyright © 2009 The University of Dundee. All Rights Reserved.