GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  IMAGER::HANDY (3)

.ds Aq ’

NAME

Imager::Handy - simple access to common functions

CONTENTS

SYNOPSIS



  use Imager :handy;
  my $color = NC(255, 0, 0);
  my $font = NF(1.0, 0, 0);



DESCRIPTION

If you use Imager with the :handy import tag, it will export a number of functions that can shorter your code.
NC()
newcolor()
newcolour() Create a new Imager::Color object, supplying any parameters to the new() method.



  my $color = NC(red);



NF()
newfont() Create a new Imager::Font object, supplying any parameters to the new() method.



  my $font = NF(file => foo.ttf);



NCF() Create a new Imager::Color::Float object, supplying any parameters to the new() method.



  my $colorf = NCF(1.0, 0, 0);



BUGS

NC() can be mostly replaced by supplying the color name or other description directly to the drawing method.

AUTHOR

Tony Cook <tonyc@cpan.org>
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 IMAGER::HANDY (3) 2014-01-10

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.