Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    Imager::Engines 0.54

    Download button

    No screenshots available
    Downloads: 344  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Arnar M. Hrafnkelsson and Anthony Cook | More programs
    Perl Artistic License / FREE
    October 17th, 2006, 12:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Imager::Engines description

    Imager::Engines is a Perl module for programmable transformation operations.

    Imager::Engines is a Perl module for programmable transformation operations.

    SYNOPSIS

    use Imager;

    my %opts;
    my @imgs;
    my $img;
    ...

    my $newimg = $img->transform(
    xexpr=>'x',
    yexpr=>'y+10*sin((x+y)/10)')
    or die $img->errstr;

    my $newimg = Imager::transform2(%opts, @imgs)
    or die "transform2 failed: $Imager::ERRSTR";

    my $newimg = $img->matrix_transform(
    matrix=>[ -1, 0, $img->getwidth-1,
    0, 1, 0,
    0, 0, 1 ]);

    transform

    The transform() function can be used to generate spatial warps and rotations and such effects. It only operates on a single image and its only function is to displace pixels.

    It can be given the operations in postfix notation or the module Affix::Infix2Postfix can be used to generate postfix code from infix code. Look in the test case t/t55trans.t for an example.
    transform() needs expressions (or opcodes) that determine the source pixel for each target pixel. Source expressions are infix expressions using any of the +, -, *, / or ** binary operators, the - unary operator, ( and ) for grouping and the sin() and cos() functions. The target pixel is input as the variables x and y.

    You specify the x and y expressions as xexpr and yexpr respectively. You can also specify opcodes directly, but that's magic deep enough that you can look at the source code.

    Requirements:

    · Perl



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    programmable transformation | transformation operations | Perl module | Imager::Engines | programmable | transformation

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM