qt5base-lts/tests/arthur/data/qps/tiled_pixmap.qps
Qt by Nokia 38be0d1383 Initial import from the monolithic Qt.
This is the beginning of revision history for this module. If you
want to look at revision history older than this, please refer to the
Qt Git wiki for how to use Git history grafting. At the time of
writing, this wiki is located here:

http://qt.gitorious.org/qt/pages/GitIntroductionWithQt

If you have already performed the grafting and you don't see any
history beyond this commit, try running "git log" with the "--follow"
argument.

Branched from the monolithic repo, Qt master branch, at commit
896db169ea224deb96c59ce8af800d019de63f12
2011-04-27 12:05:43 +02:00

82 lines
1.5 KiB
Plaintext

translate 0 10
setRenderHint Antialiasing
pixmap_load dome_argb32 the_pixmap
begin_block draw_stuff
save
# Standard draw
drawTiledPixmap the_pixmap 0 0 150 100 0 0
# Standard draw with offset
translate 160 0
drawTiledPixmap the_pixmap 0 0 150 100 25 25
# xformed
translate 160 0
save
translate 10 -10
rotate 10
setRenderHint SmoothPixmapTransform false
drawTiledPixmap the_pixmap 0 0 150 100 25 25
restore
# xformed with smooth xform
translate 160 0
save
translate 10 -10
rotate 10
setRenderHint SmoothPixmapTransform
drawTiledPixmap the_pixmap 0 0 150 100 25 25
restore
restore
end_block
translate 0 120
pixmap_load dome_rgb32 the_pixmap
repeat_block draw_stuff
translate 0 120
pixmap_load dome_indexed the_pixmap
repeat_block draw_stuff
translate 0 120
pixmap_load dome_indexed_mask the_pixmap
repeat_block draw_stuff
translate 0 120
pixmap_load dome_mono the_pixmap
repeat_block draw_stuff
################################################################################
# Some helpful text...
#
resetMatrix
translate 650 80
drawText 0 0 "32 bit w/alpha"
translate 0 120
drawText 0 0 "32 bit w/o alpha"
translate 0 120
drawText 0 0 "8 bit indexed"
translate 0 120
drawText 0 0 "8 bit indexed w/mask"
translate 0 120
drawText 0 0 "1 bit"
resetMatrix
translate 10 630
drawText 0 0 "normal"
translate 160 0
drawText 0 0 "offset"
translate 160 0
drawText 0 0 "xformed"
translate 160 0
drawText 0 0 "smooth xformed"