~ubuntu-branches/ubuntu/intrepid/digikam/intrepid

« back to all changes in this revision

Viewing changes to digikam/imageplugins/superimpose/superimpose.h

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell
  • Date: 2008-07-17 20:25:39 UTC
  • mfrom: (1.3.2 upstream) (37 hardy)
  • mto: This revision was merged to the branch mainline in revision 39.
  • Revision ID: james.westby@ubuntu.com-20080717202539-1bw3w3nrsso7yj4z
* New upstream release
  - digiKam 0.9.4 Release Plan (KDE3) ~ 13 July 08 (Closes: #490144)
* DEB_CONFIGURE_EXTRA_FLAGS := --without-included-sqlite3
* Debhelper compatibility level V7
* Install pixmaps in debian/*.install
* Add debian/digikam.lintian-overrides

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ============================================================
 
2
 *
 
3
 * This file is a part of digiKam project
 
4
 * http://www.digikam.org
 
5
 *
 
6
 * Date        : 2006-18-03
 
7
 * Description : Superimpose filter.
 
8
 *
 
9
 * Copyright (C) 2006-2008 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
 
10
 *
 
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)
 
15
 * any later version.
 
16
 *
 
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.
 
21
 *
 
22
 * ============================================================ */
 
23
 
 
24
#ifndef SUPERIMPOSE_H
 
25
#define SUPERIMPOSE_H
 
26
 
 
27
// Qt includes
 
28
 
 
29
#include <qrect.h>
 
30
 
 
31
// Digikam includes.
 
32
 
 
33
#include "dimg.h"
 
34
#include "dcolor.h"
 
35
 
 
36
namespace DigikamSuperImposeImagesPlugin
 
37
{
 
38
 
 
39
class SuperImpose
 
40
{
 
41
 
 
42
public:
 
43
 
 
44
    SuperImpose(Digikam::DImg *orgImage, Digikam::DImg *templ,
 
45
                QRect orgImageSelection,
 
46
                Digikam::DColorComposer::CompositingOperation
 
47
                compositeRule = Digikam::DColorComposer::PorterDuffNone);
 
48
 
 
49
    Digikam::DImg getTargetImage() { return m_destImage; }
 
50
 
 
51
private:
 
52
 
 
53
    void filterImage(void);
 
54
 
 
55
private:
 
56
 
 
57
    QRect                                         m_selection;
 
58
 
 
59
    Digikam::DImg                                 m_orgImage;
 
60
    Digikam::DImg                                 m_template;
 
61
    Digikam::DImg                                 m_destImage;
 
62
    Digikam::DColorComposer::CompositingOperation m_compositeRule;
 
63
};
 
64
 
 
65
} // namespace DigikamSuperImposeImagesPlugin
 
66
 
 
67
#endif /* SUPERIMPOSE_H */