ultimatepp/uppdev/BiCubic/bicubic.h
cxl a87f85b5a2 .uppdev
git-svn-id: svn://ultimatepp.org/upp/trunk@6015 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2013-05-01 15:14:38 +00:00

18 lines
711 B
C++

#include <CtrlLib/CtrlLib.h>
#include <Painter/Painter.h>
using namespace Upp;
enum {
DOWNSCALE_SIMPLE,
DOWNSCALE_MIPMAP,
DOWNSCALE_WIDE,
};
Image RescaleWithKernelE(const Image& _img, int cx, int cy, double (*kernel)(double x), int a, int method = DOWNSCALE_WIDE);
Image RescaleWithKernel(const Image& _img, int cx, int cy, double (*kernel)(double x), int a, int method = DOWNSCALE_WIDE);
Image RescaleFilter(const Image& img, Size sz, double (*kfn)(double x), int a, Gate2<int, int> progress = false);
Image RescaleFilter(const Image& img, Size sz, const Rect& sr, double (*kfn)(double x), int a, Gate2<int, int> progress = false);
Image DownScale(const Image& img, int nx, int ny);