Main Page   Class Overview   Pixels   Images   Geometry   Quick Index  

HxScale.h File Reference

More...

#include "HxImageRep.h"

Go to the source code of this file.

Functions

HxImageRep L_HXIMAGEREP HxScale (HxImageRep img, double sx, double sy, double sz, HxGeoIntType gi, int adjustSize)
 Scaling. More...


Detailed Description


Function Documentation

HxImageRep L_HXIMAGEREP HxScale HxImageRep    img,
double    sx,
double    sy,
double    sz,
HxGeoIntType    gi,
int    adjustSize
 

Scaling.

00016 {
00017     if (img.dimensionality() == 2) {
00018         HxMatrix m = HxMatrix::scale2d(sx, sy);
00019         return img.geometricOp2d(m, gi, FORWARD, adjustSize);
00020     } else {
00021         HxEnvironment::instance()->errorStream()
00022             << "3d scaling not implemented yet" << STD_ENDL;
00023         HxEnvironment::instance()->flush();
00024         return HxImageRep();
00025     }
00026 }


Generated on Tue Jan 8 13:59:21 2002 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001