tests/arthur/data/qps/perspectives.qps
changeset 0 1918ee327afb
equal deleted inserted replaced
-1:000000000000 0:1918ee327afb
       
     1 
       
     2 setRenderHint Antialiasing
       
     3 
       
     4 setPen #00ff00
       
     5 
       
     6 image_load image.png the_image
       
     7 
       
     8 translate 10 10
       
     9 # standard draw
       
    10 drawImage the_image 0 0
       
    11 
       
    12 # Rotation w/o smooth xform
       
    13 save
       
    14 translate 350 0
       
    15 save
       
    16   setRenderHint SmoothPixmapTransform on
       
    17   mapQuadToQuad 0 0 0 300 300 300 300 0   0 50 0 200 300 300 300 0
       
    18   drawImage the_image 0 0
       
    19 restore
       
    20 restore
       
    21 
       
    22 translate 0 320
       
    23 
       
    24 save
       
    25   setRenderHint SmoothPixmapTransform on
       
    26   mapQuadToQuad 0 0 0 300 300 300 300 0   0 0 100 300 200 300 300 0
       
    27   drawImage the_image 0 0
       
    28 restore
       
    29 
       
    30 save
       
    31 translate 350 0
       
    32 save
       
    33   setRenderHint SmoothPixmapTransform on
       
    34   mapQuadToQuad 0 0 0 300 300 300 300 0   0 0 0 300 300 250 300 50
       
    35   drawImage the_image 0 0
       
    36 restore
       
    37 restore
       
    38 
       
    39 setRenderHint SmoothPixmapTransform on
       
    40 setBrush red
       
    41 setPen black
       
    42 resetMatrix
       
    43 translate 100 720
       
    44 rotate_y 85
       
    45 scale 7 0.01
       
    46 drawRect -150 -150 300 300
       
    47 
       
    48 resetMatrix
       
    49 setBrush gam030.png
       
    50 setPen black 30
       
    51 translate 700 700
       
    52 rotate_y -85
       
    53 scale 7 0.01
       
    54 drawRect -150 -150 300 300
       
    55 
       
    56 resetMatrix
       
    57 setPen black
       
    58 translate 125 20
       
    59 drawText 0 0 "No transform"
       
    60 translate 350 0
       
    61 drawText 0 0 "Left Tilted"
       
    62 resetMatrix
       
    63 translate 125 350
       
    64 drawText 0 0 "Bottom Tilted"
       
    65 translate 350 0
       
    66 drawText 0 0 "Right Tilted"
       
    67 translate 120 0
       
    68 resetMatrix
       
    69 translate 300 760
       
    70 drawText 0 0 "Perspective Clipping"