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
Imager::Handy(3) User Contributed Perl Documentation Imager::Handy(3)

Imager::Handy - simple access to common functions

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

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);
    

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

Tony Cook <tonyc@cpan.org>
2014-01-10 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

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