HEX
Server: Apache/2.4.46 (Win64) OpenSSL/1.1.1j PHP/8.4.25
System: Windows NT DESKTOP-4TAV2RJ 10.0 build 19045 (Windows 10) AMD64
User: fred (0)
PHP: 8.4.25
Disabled: NONE
Upload Files
File: C:/xampp/perl/vendor/lib/Imager/Filter/DynTest.pm
package Imager::Filter::DynTest;
use 5.006;
use strict;
use Imager;

BEGIN {
  our $VERSION = "0.03";
  
  require XSLoader;
  XSLoader::load('Imager::Filter::DynTest', $VERSION);
}


sub _lin_stretch {
  my %hsh = @_;

  lin_stretch($hsh{image}, $hsh{a}, $hsh{b});
}

Imager->register_filter(type=>'lin_stretch',
                        callsub => \&_lin_stretch,
                        defaults => { a => 0, b => 255 },
                        callseq => [ qw/image a b/ ]);

1;