e39083b4c11d1f5a9229a11a81252005db71f3d3
[profile/ivi/qtbase.git] / examples / widgets / doc / src / composition.qdoc
1 /****************************************************************************
2 **
3 ** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
4 ** Contact: http://www.qt-project.org/legal
5 **
6 ** This file is part of the documentation of the Qt Toolkit.
7 **
8 ** $QT_BEGIN_LICENSE:FDL$
9 ** Commercial License Usage
10 ** Licensees holding valid commercial Qt licenses may use this file in
11 ** accordance with the commercial license agreement provided with the
12 ** Software or, alternatively, in accordance with the terms contained in
13 ** a written agreement between you and Digia.  For licensing terms and
14 ** conditions see http://qt.digia.com/licensing.  For further information
15 ** use the contact form at http://qt.digia.com/contact-us.
16 **
17 ** GNU Free Documentation License Usage
18 ** Alternatively, this file may be used under the terms of the GNU Free
19 ** Documentation License version 1.3 as published by the Free Software
20 ** Foundation and appearing in the file included in the packaging of
21 ** this file.  Please review the following information to ensure
22 ** the GNU Free Documentation License version 1.3 requirements
23 ** will be met: http://www.gnu.org/copyleft/fdl.html.
24 ** $QT_END_LICENSE$
25 **
26 ****************************************************************************/
27
28 /*!
29     \example painting/composition
30     \title Composition Modes
31
32     \brief This demo shows some of the more advanced composition modes supported by Qt.
33
34     \image composition-demo.png
35
36     The two most common forms of composition are \b{Source} and \b{SourceOver}.
37     \b{Source} is used to draw opaque objects onto a paint device. In this mode,
38     each pixel in the source replaces the corresponding pixel in the destination.
39     In \b{SourceOver} composition mode, the source object is transparent and is
40     drawn on top of the destination.
41
42     In addition to these standard modes, Qt defines the complete set of composition modes
43     as defined by X. Porter and Y. Duff. See the QPainter documentation for details.
44 */