#include "HxImageRep.h"
Go to the source code of this file.
Functions | |
| HxImageRep L_HXIMAGEREP | HxScale (HxImageRep img, double sx, double sy, double sz=1.0, HxGeoIntType gi=LINEAR, int adjustSize=1) |
| Scaling. More... | |
|
||||||||||||||||||||||||||||
|
Scaling.
00016 {
00017 HxString fname("HxScale");
00018
00019 if (img.isNull())
00020 {
00021 HxGlobalError::instance()->reportError(fname, img.name(), "null image", HxGlobalError::HX_GE_INVALID);
00022 return HxImageRep();
00023 }
00024
00025 if (img.dimensionality() == 2) {
00026 HxMatrix m = HxMatrix::scale2d(sx, sy);
00027 return img.geometricOp2d(m, gi, FORWARD, adjustSize);
00028 } else {
00029 HxEnvironment::instance()->errorStream()
00030 << "3d scaling not implemented yet" << STD_ENDL;
00031 HxEnvironment::instance()->flush();
00032 return HxImageRep();
00033 }
00034 }
|
1.2.12 written by Dimitri van Heesch,
© 1997-2001