tests/arthur/data/qps/image_formats.qps
changeset 0 1918ee327afb
equal deleted inserted replaced
-1:000000000000 0:1918ee327afb
       
     1 
       
     2 image_load dome_argb32.png the_pixmap
       
     3 image_convertToFormat the_pixmap the_pixmap ARGB32_Premultiplied
       
     4 
       
     5 begin_block draw_stuff
       
     6   save
       
     7     image_convertToFormat the_pixmap converted ARGB32_Premultiplied
       
     8     drawImage converted 0 0
       
     9     translate 0 110
       
    10 
       
    11     image_convertToFormat the_pixmap converted ARGB32
       
    12     drawImage converted 0 0
       
    13     translate 0 110
       
    14 
       
    15     image_convertToFormat the_pixmap converted RGB32
       
    16     drawImage converted 0 0
       
    17     translate 0 110
       
    18 
       
    19     image_convertToFormat the_pixmap converted Indexed8
       
    20     drawImage converted 0 0
       
    21     translate 0 110
       
    22 
       
    23     image_convertToFormat the_pixmap converted MonoLSB
       
    24     drawImage converted 0 0
       
    25     translate 0 110
       
    26 
       
    27     image_convertToFormat the_pixmap converted Mono
       
    28     drawImage converted 0 0
       
    29     translate 0 110
       
    30   restore
       
    31 end_block
       
    32 
       
    33 
       
    34 image_load dome_argb32.png the_pixmap
       
    35 translate 110 0
       
    36 repeat_block draw_stuff
       
    37 
       
    38 
       
    39 image_load dome_rgb32.png the_pixmap
       
    40 translate 110 0
       
    41 repeat_block draw_stuff
       
    42 
       
    43 image_load dome_indexed.png the_pixmap
       
    44 translate 110 0
       
    45 repeat_block draw_stuff
       
    46 
       
    47 
       
    48 image_load dome_mono.png the_pixmap
       
    49 translate 110 0
       
    50 repeat_block draw_stuff
       
    51 
       
    52 image_load dome_mono_palette.png the_pixmap
       
    53 translate 110 0
       
    54 repeat_block draw_stuff
       
    55 
       
    56 image_load dome_indexed_mask.png the_pixmap
       
    57 translate 110 0
       
    58 repeat_block draw_stuff
       
    59 
       
    60 
       
    61 # helpful texts
       
    62 resetMatrix
       
    63 setPen black
       
    64 
       
    65 drawText 10 670 "ARGB32_PM"
       
    66 drawText 120 670 "ARGB32"
       
    67 drawText 230 670 "RGB32"
       
    68 drawText 340 670 "Indexed"
       
    69 drawText 450 670 "Mono"
       
    70 drawText 560 670 "Mono w/lut"
       
    71 drawText 670 670 "Indexed w/mask"
       
    72 
       
    73 drawText 770 50 "ARGB32_PM"
       
    74 drawText 770 160 "ARGB32"
       
    75 drawText 770 270 "RGB32"
       
    76 drawText 770 380 "Indexed"
       
    77 drawText 770 490 "MonoLSB"
       
    78 drawText 770 600 "Mono"