diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2009-05-01 05:49:36 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-05-01 05:49:36 (GMT) |
commit | ea0284d0f4a3408d7c1219702214c263118ef52f (patch) | |
tree | 51225cdd4ce4eead0eb3824fa6ad3dfc6fd6fe89 /src/declarative/fx/qfximage.cpp | |
parent | c1830b72bc64cca5d5110ce084b580022ac8d3a0 (diff) | |
download | Qt-ea0284d0f4a3408d7c1219702214c263118ef52f.zip Qt-ea0284d0f4a3408d7c1219702214c263118ef52f.tar.gz Qt-ea0284d0f4a3408d7c1219702214c263118ef52f.tar.bz2 |
doc
Diffstat (limited to 'src/declarative/fx/qfximage.cpp')
-rw-r--r-- | src/declarative/fx/qfximage.cpp | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/src/declarative/fx/qfximage.cpp b/src/declarative/fx/qfximage.cpp index 1361d68..53c6137 100644 --- a/src/declarative/fx/qfximage.cpp +++ b/src/declarative/fx/qfximage.cpp @@ -60,36 +60,38 @@ QML_DEFINE_TYPE(QFxImage,Image); \brief The Image element allows you to add bitmaps to a scene. \inherits Item - The Image element supports untransformed, stretched, grid-scaled and tiled images. For an explanation of grid-scaling see the scaleGrid property description or the QFxScaleGrid class description. + The Image element supports untransformed, stretched, grid-scaled and tiled images. + For an explanation of grid-scaling see the scaleGrid property description + or the QFxScaleGrid class description. Examples: \table \row \o \image declarative-qtlogo1.png \o Untransformed - \code + \qml Image { source: "pics/qtlogo.png" } - \endcode + \endqml \row \o \image declarative-qtlogo2.png \o Stretched - \code + \qml Image { width: 160; height: 160; source: "pics/qtlogo.png" } - \endcode + \endqml \row \o \image declarative-qtlogo4.png \o Grid-scaled - \code + \qml Image { scaleGrid.left: 20; scaleGrid.right: 10 scaleGrid.top: 14; scaleGrid.bottom: 14 width: 160; height: 160; source: "pics/qtlogo.png" } - \endcode + \endqml \row \o \image declarative-qtlogo3.png \o Tiled - \code + \qml Image { tile: true; width: 160; height: 160; source: "pics/qtlogo.png" } - \endcode + \endqml \endtable */ @@ -101,9 +103,9 @@ QML_DEFINE_TYPE(QFxImage,Image); \ingroup group_coreitems Example: - \code + \qml Image { source: "pics/star.png" } - \endcode + \endqml A QFxImage object can be instantiated in Qml using the tag \l Image. */ @@ -198,13 +200,13 @@ QFxScaleGrid *QFxImage::scaleGrid() bitmap file to its size. If tiling is enabled, the bitmap is repeated as a set of unscaled tiles, clipped to the size of the Image. - \code + \qml Item { Image { source: "tile.png" } Image { x: 80; width: 100; height: 100; src: "tile.png" } Image { x: 190; width: 100; height: 100; tile: true; src: "tile.png" } } - \endcode + \endqml \image declarative-image_tile.png If both tiling and the scaleGrid are set, tiling takes precedence. |