NAME |
Synopsis |
Description |
Distributions |
Constructor and initialization |
Method: new(...) |
Method: tile() |
Required Modules |
Author |
Copyright |
NAME
Synopsis#!/usr/bin/perl use Image::Magick::Tile; Image::Magick::Tile -> new ( input_file => 'image.png', geometry => '3x4+5-6', output_dir => '', output_type => 'png', ) -> tile(); This slices image.png into 3 tiles horizontally and 4 tiles vertically. Further, the width of each tile is ( (width of image.png) / 3) + 5 pixels, and the height of each tile is ( (height of image.png) / 4) - 6 pixels. In the geometry option NxM+x+y, the x and y offsets can be used to change the size of the tiles. For example, if you specify 2x3, and the vertical line which splits the image goes through an interesting part of the image, you could then try 2x3+50, say, to move the vertical line 50 pixels to the right. This is what I do when printing database schema generated with GraphViz::DBI. Description
DistributionsThis module is available both as a Unix-style distro (*.tgz) and an ActiveState-style distro (*.ppd). The latter is shipped in a *.zip file. See http://savage.net.au/Perl-modules.html for details. See http://savage.net.au/Perl-modules/html/installing-a-module.html for help on unpacking and installing each type of distro. Constructor and initializationnew(...) returns a This is the class's contructor. Parameters:
Method: new(...)Returns a object of type See above, in the section called 'Constructor and initialization'. Method: tile()Returns an array ref, which may be empty. See the 'return' option above for details. Required ModulesImage::Magick. Author
Home page: http://savage.net.au/index.html CopyrightAustralian copyright © 2005, Ron Savage. All rights reserved. All Programs of mine are 'OSI Certified Open Source Software'; you can redistribute them and/or modify them under the terms of The Artistic License, a copy of which is available at: http://www.opensource.org/licenses/index.html |
| Top of page |