#include "HxImageRep.h"
Go to the source code of this file.
Functions | |
| HxImageRep L_HXIMAGEREP | HxTranslate (HxImageRep img, int doX, int doY, int doZ=1) |
| Translation. More... | |
|
||||||||||||||||||||
|
Translation.
00014 {
00015 if (img.dimensionality() == 2) {
00016 HxMatrix m(img.sizes().x(),img.sizes().y());
00017 m = m.translate2d(doX, doY);
00018 return img.geometricOp2d(m, NEAREST, FORWARD, 0, HxValue(0));
00019 } else {
00020 HxEnvironment::instance()->errorStream()
00021 << "3d Translation not implemented yet" << STD_ENDL;
00022 HxEnvironment::instance()->flush();
00023 return HxImageRep();
00024 }
00025 }
|
1.2.12 written by Dimitri van Heesch,
© 1997-2001