ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/perl/background
(Generate patch)

Comparing rxvt-unicode/src/perl/background (file contents):
Revision 1.79 by root, Tue Sep 4 22:41:11 2012 UTC vs.
Revision 1.81 by sf-exg, Wed Oct 24 11:20:28 2012 UTC

641=item scale $width_factor, $height_factor, $img 641=item scale $width_factor, $height_factor, $img
642 642
643Scales the image by the given factors in horizontal 643Scales the image by the given factors in horizontal
644(C<$width>) and vertical (C<$height>) direction. 644(C<$width>) and vertical (C<$height>) direction.
645 645
646If only one factor is give, it is used for both directions. 646If only one factor is given, it is used for both directions.
647 647
648If no factors are given, scales the image to the window size without 648If no factors are given, scales the image to the window size without
649keeping aspect. 649keeping aspect.
650 650
651=item resize $width, $height, $img 651=item resize $width, $height, $img
776=item rotate $center_x, $center_y, $degrees, $img 776=item rotate $center_x, $center_y, $degrees, $img
777 777
778Rotates the image clockwise by C<$degrees> degrees, around the point at 778Rotates the image clockwise by C<$degrees> degrees, around the point at
779C<$center_x> and C<$center_y> (specified as factor of image width/height). 779C<$center_x> and C<$center_y> (specified as factor of image width/height).
780 780
781Example: rotate the image by 90 degrees around it's center. 781Example: rotate the image by 90 degrees around its center.
782 782
783 rotate 0.5, 0.5, 90, keep { load "$HOME/mybg.png" } 783 rotate 0.5, 0.5, 90, keep { load "$HOME/mybg.png" }
784 784
785=cut 785=cut
786 786
885 $img 885 $img
886 } 886 }
887 887
888=item muladd $mul, $add, $img # EXPERIMENTAL 888=item muladd $mul, $add, $img # EXPERIMENTAL
889 889
890First multipliesthe pixels by C<$mul>, then adds C<$add>. This cna be used 890First multiplies the pixels by C<$mul>, then adds C<$add>. This can be used
891to implement brightness and contrast at the same time, with a wider value 891to implement brightness and contrast at the same time, with a wider value
892range than contrast and brightness operators. 892range than contrast and brightness operators.
893 893
894Due to numerous bugs in XRender implementations, it can also introduce a 894Due to numerous bugs in XRender implementations, it can also introduce a
895number of visual artifacts. 895number of visual artifacts.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines