| 1 |
# Version: 1 |
| 2 |
# CheckVsReference: 1% (0 0 690 580) |
| 3 |
|
| 4 |
|
| 5 |
setRenderHint Antialiasing |
| 6 |
|
| 7 |
setPen #00ff00 |
| 8 |
|
| 9 |
pixmap_load dome_argb32.png the_pixmap |
| 10 |
begin_block draw_stuff |
| 11 |
|
| 12 |
save |
| 13 |
|
| 14 |
# standard draw |
| 15 |
drawPixmap the_pixmap 0 0 |
| 16 |
|
| 17 |
# sub recting |
| 18 |
translate 120 0 |
| 19 |
drawPixmap the_pixmap 0 0 40 40 0 0 40 40 |
| 20 |
drawPixmap the_pixmap 60 0 40 40 60 0 40 40 |
| 21 |
drawPixmap the_pixmap 0 60 40 40 0 60 40 40 |
| 22 |
drawPixmap the_pixmap 60 60 40 40 60 60 40 40 |
| 23 |
drawPixmap the_pixmap 0 40 40 20 0 40 40 20 |
| 24 |
drawPixmap the_pixmap 60 40 40 20 60 40 40 20 |
| 25 |
drawPixmap the_pixmap 40 0 20 100 40 0 20 100 |
| 26 |
|
| 27 |
# subrecting w/scale |
| 28 |
translate 120 0 |
| 29 |
drawPixmap the_pixmap 0 0 50 50 0 0 25 25 |
| 30 |
drawPixmap the_pixmap 50 0 50 50 25 0 25 25 |
| 31 |
drawPixmap the_pixmap 0 50 50 50 0 25 25 25 |
| 32 |
drawPixmap the_pixmap 50 50 50 50 25 25 25 25 |
| 33 |
|
| 34 |
# subrecting w/scale & smooth xform |
| 35 |
translate 120 0 |
| 36 |
setRenderHint SmoothPixmapTransformation |
| 37 |
drawPixmap the_pixmap 0 0 50 50 0 0 25 25 |
| 38 |
drawPixmap the_pixmap 50 0 50 50 25 0 25 25 |
| 39 |
drawPixmap the_pixmap 0 50 50 50 0 25 25 25 |
| 40 |
drawPixmap the_pixmap 50 50 50 50 25 25 25 25 |
| 41 |
|
| 42 |
|
| 43 |
# Rotation w/o smooth xform |
| 44 |
translate 120 0 |
| 45 |
save |
| 46 |
setRenderHint SmoothPixmapTransform off |
| 47 |
rotate 10 |
| 48 |
drawPixmap the_pixmap 0 0 |
| 49 |
restore |
| 50 |
|
| 51 |
# Rotation w smooth xform |
| 52 |
translate 120 0 |
| 53 |
save |
| 54 |
setRenderHint SmoothPixmapTransform |
| 55 |
rotate 10 |
| 56 |
drawPixmap the_pixmap 0 0 |
| 57 |
restore |
| 58 |
|
| 59 |
restore |
| 60 |
|
| 61 |
end_block |
| 62 |
|
| 63 |
|
| 64 |
translate 0 120 |
| 65 |
pixmap_load dome_rgb32.png the_pixmap |
| 66 |
repeat_block draw_stuff |
| 67 |
|
| 68 |
translate 0 120 |
| 69 |
pixmap_load dome_indexed.png the_pixmap |
| 70 |
repeat_block draw_stuff |
| 71 |
|
| 72 |
translate 0 120 |
| 73 |
pixmap_load dome_indexed_mask.png the_pixmap |
| 74 |
repeat_block draw_stuff |
| 75 |
|
| 76 |
translate 0 120 |
| 77 |
pixmap_load dome_mono.png the_pixmap |
| 78 |
repeat_block draw_stuff |
| 79 |
|
| 80 |
|
| 81 |
resetMatrix |
| 82 |
translate 700 60 |
| 83 |
setPen black |
| 84 |
drawText 0 0 "32 bit w/alpha" |
| 85 |
translate 0 120 |
| 86 |
drawText 0 0 "32 bit w/o alpha" |
| 87 |
translate 0 120 |
| 88 |
drawText 0 0 "8 bit indexed" |
| 89 |
translate 0 120 |
| 90 |
drawText 0 0 "8 bit indexed w/mask" |
| 91 |
translate 0 120 |
| 92 |
drawText 0 0 "1 bit" |
| 93 |
resetMatrix |
| 94 |
translate 0 600 |
| 95 |
drawText 0 0 "normal" |
| 96 |
translate 120 0 |
| 97 |
drawText 0 0 "subrect" |
| 98 |
translate 120 0 |
| 99 |
drawText 0 0 "subrect scale" |
| 100 |
translate 120 0 |
| 101 |
drawText 0 0 "subrect scale smooth" |
| 102 |
translate 120 0 |
| 103 |
drawText 0 0 "xform" |
| 104 |
translate 120 0 |
| 105 |
drawText 0 0 "smooth xform" |
| 106 |
translate 120 0 |