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