ImageMagick images | |
|
PPresenter Manual Images
Options: functionsExamples
|
An important part of the design of
Portable Presenter is the requirement for
screen-size independency; fonts and also images are scaled, dependent on
the actual screen-size.
PPresenter will automatically use Image::Magick when it is installed. There is no performance reason to decide differently. You can defined Image::Magick images in two ways:
Magick optionsThere are no special options for Image::Magick objects: the general options define all.ImageMagick functionsIf you want to create images with ImageMagick, you do not need to read the documentation of PPresenter: they are not connected at all. A small example to demonstrate:
use PPresenter;
use Image::Magick;
my $image = Image::Magick->new;
$image->Read('image.tiff');
$image->Scale('25%x50%');
...
my $show = PPresenter->new;
$show->image($image, -name => 'image');
On the moment you add the image to the show, the Magick structure is
taken. You should not try to change the object after this.
ExamplesExample 1: Own symbols for unordered listsUsually, the dots used to precede a list-item in an unordered list (for instance used by the markup formatter), is defined by the decoration option-nestImages. The dots can be specified as filename or as
objects.
use PPresenter;
use Image::Magick;
my $dots = Image::Magick->new;
$dots->Read('redball.gif', 'blueball.pct');
my $show = PPresenter->new;
my @p = $show->image(@$dots);
$show->change( decoration => 'ALL'
, -nestImages => [ undef, @p ] )
One Image::Magick can contain a list of images.
Portable Presenter is written and maintained by Mark Overmeer. There is no relation between this software product and his employer. Copyright (C) 1999, Free Software Foundation Inc. |