IUP::Canvas::Pattern - [special Canvas helper] Fill pattern for use with IUP::Canvas
$pat = IUP::Canvas::Pattern->new( [ [...], [...] ] ); #1 param $pat = IUP::Canvas::Pattern->new( $w, $h ); #2 params $value = $pat->Pixel($x, $y); $pat->Pixel($x, $y, $value); $pat->Width(); $pat->Height(); $pat->Data(); $canvas->cdPattern($pat); $canvas->wdPattern($pat, $w_mm, $h_mm); $curpat = $canvas->cdGetPattern();
IUP::Canvas::Bitmap is a helper class used by IUP::Canvas methods: cdPattern, wdPattern and cdGetPattern
IUP::Canvas
To install IUP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm IUP
CPAN shell
perl -MCPAN -e shell install IUP
For more information on module installation, please visit the detailed CPAN module installation guide.