Logo Search packages:      
Sourcecode: jmagick version File versions  Download package

native MagickImage magick::MagickImage::scaleImage ( int  cols,
int  rows 
) throws MagickException

Return a new image that is a scaled version of the original. To scale a scanline from x pixels to y pixels, each new pixel represents x/y old pixels. To read x/y pixels, read (x/y rounded up) pixels but only count the required fraction of the last old pixel read in your new pixel. The remainder of the old pixel will be counted in the next new pixel.

Parameters:
cols An integer that specifies the number of columns in \ the scaled image
rows An integer that specifies the number of rows in the \ scaled image
Returns:
the scaled image
Exceptions:
MagickException on error


Generated by  Doxygen 1.6.0   Back to index