Kevin Ryde > Image-Base-Other > Image::Base::Multiplex

Download:
Image-Base-Other-9.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 9   Source  

NAME ^

Image::Base::Multiplex -- draw to multiple Image::Base objects simultaneously

SYNOPSIS ^

 use Image::Base::Multiplex;
 my $multiplex_image = Image::Base::Multiplex->new
                           (-images => [$image1,$image2]);
 $multiplex_image->rectangle (0,0, 99,99, 'white');
 $multiplex_image->line (50,50, 70,70, '#FF00FF');

CLASS HIERARCHY ^

Image::Base::Multiplex is a subclass of Image::Base,

    Image::Base
      Image::Base::Multiplex

DESCRIPTION ^

Image::Base::Multiplex operates on multiple Image::Base objects simultaneously so that one drawing call draws to a set of images.

FUNCTIONS ^

$image = Image::Base::Multiplex->new (key=>value,...)

Create and return a new multiplex image object. An initial list of target images can be supplied,

    my $image = Image::Base::Multiplex->new
                   (-images => [ $image1, $image2 ]);

Or start empty and set some -images later

    my $image = Image::Base::Multiplex->new ();
$image->xy (...)
$image->line (...)
$image->rectangle (...)
$image->ellipse (...)
$image->diamond (...)

These calls are passed through to each target image.

$image->add_colours ($colour, $colour, ...)

Call add_colours on each target image which supports that method, and skip those which don't.

ATTRIBUTES ^

-images (arrayref of Image::Base objects)

The target images to draw on.

SEE ALSO ^

Image::Base

G2 has a similar multi-output to its devices.

HOME PAGE ^

http://user42.tuxfamily.org/image-base-other/index.html

LICENSE ^

Image-Base-Other is Copyright 2010, 2011, 2012 Kevin Ryde

Image-Base-Other is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.

Image-Base-Other is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Image-Base-Other. If not, see <http://www.gnu.org/licenses/>.

syntax highlighting: