1
/* ============================================================
3
* This file is a part of digiKam project
4
* http://www.digikam.org
7
* Description : pixels antialiasing filter
9
* Copyright (C) 2005-2010 by Gilles Caulier <caulier dot gilles at gmail dot com>
11
* This program is free software; you can redistribute it
12
* and/or modify it under the terms of the GNU General
13
* Public License as published by the Free Software Foundation;
14
* either version 2, or (at your option)
17
* This program is distributed in the hope that it will be useful,
18
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
* GNU General Public License for more details.
22
* ============================================================ */
24
#ifndef PIXELSALIASFILTERS_H
25
#define PIXELSALIASFILTERS_H
33
#include "digikam_export.h"
39
class DIGIKAM_EXPORT PixelsAliasFilter
43
PixelsAliasFilter(){};
44
~PixelsAliasFilter(){};
46
public: // Public methods.
48
void pixelAntiAliasing(uchar* data, int Width, int Height, double X, double Y,
49
uchar* A, uchar* R, uchar* G, uchar* B);
51
void pixelAntiAliasing16(unsigned short* data, int Width, int Height, double X, double Y,
52
unsigned short* A, unsigned short* R, unsigned short* G, unsigned short* B);
56
inline int setPositionAdjusted (int Width, int Height, int X, int Y);
59
} // namespace Digikam
61
#endif /* PIXELSALIASFILTERS_H */