File: Flines.pm

package info (click to toggle)
libimager-perl 1.010%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 6,336 kB
  • sloc: perl: 31,479; ansic: 27,831; makefile: 55; cpp: 4
file content (50 lines) | stat: -rw-r--r-- 906 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package Imager::Filter::Flines;
use strict;
use Imager;
use vars qw($VERSION @ISA);

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

Imager->register_filter(type=>'flines',
                        callsub => sub { my %hsh = @_; flines($hsh{image}) },
                        defaults => {},
                        callseq => [ 'image' ] );

1;

__END__

=head1 NAME

Imager::Filter::Flines - dim alternate lines to emulate a video display

=head1 SYNOPSIS

  use Imager;
  use Imager::Filter::Flines;

  $img->filter(type=>'flines');

=head1 DESCRIPTION

This is an adaption of the C<flines> dynamically loadable filter
provided in dynfilt/ in previous releases of Imager.

This filter has no parameters.

=head1 AUTHOR

Original by Arnar M. Hrafnkelsson.

Adapted by Tony Cook <tonyc@cpan.org>

=head1 SEE ALSO

Imager, Imager::Filters.

=cut