Branch: Tag:

2001-04-05

2001-04-05 23:45:34 by Per Hedbor <ph@opera.com>

New Tools module, Tools.PV. Use it to display images.
Tools.PV( filename ) or Tools.PV( Image.Image ) or Tools.PV( Image.Layer ), or, finally, Tools.PV( array(Image.Layer) ).

The alpha combining mode can be set with Tools.PV.set_alpha_mode( ), and is one of Tools.PV.Squares, Tools.PV.Solid, Tools.PV.None and Tools.PV.AlphaOnly. The alpha combining mode colors can be set with set_alpha_colors( color1, color2 ), color2 is used for the 'Squares' mode. You can change the image with set_image().

Rev: lib/modules/Tools.pmod/PV.pike:1.1

76:   <a href='ex/predef_3A_3A/Stdio.html'><b>Stdio</b></a>   <a href='ex/predef_3A_3A/String.html'><b>String</b></a>   <a href='ex/predef_3A_3A/Thread.html'><b>Thread</b></a> + <a href='ex/predef_3A_3A/Tools.html'><b>Tools</b></a>   <a href='ex/predef_3A_3A/Yp.html'><b>Yp</b></a>   <a href='ex/predef_3A_3A/modules.html'><b>modules</b></a>   <a href='ex/predef_3A_3A/post_modules.html'><b>post_modules</b></a>