| 1 | # -*- perl -*- | ||||||||||
| 2 | |||||||||||
| 3 | # Copyright (C) 2015 Slaven Rezic. All rights reserved. | ||||||||||
| 4 | # This package is free software; you can redistribute it and/or | ||||||||||
| 5 | # modify it under the same terms as Perl itself. | ||||||||||
| 6 | |||||||||||
| 7 | package Imager::Image::Xbm; | ||||||||||
| 8 | |||||||||||
| 9 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 1 | ▶ | use vars qw($VERSION); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | 1 | $VERSION = '0.01'; | |||||||||
| 12 | |||||||||||
| 13 | 1 | ▶ | use base 'Imager::Image::Base'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 14 | |||||||||||
| 15 | 1 | ▶ | use Image::Xbm; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 16 | |||||||||||
| 17 | 1 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=3 SCAR=11.2
Pod
undocumented
| |||||||||||
| 18 | 1 | my($class, %opts) = @_; | |||||||||
| 19 | 1 | my $file = delete $opts{file}; | |||||||||
| 20 | 1 | ▶ | die 'file option is mandatory' if !defined $file; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 21 | 1 | ▶ | die 'Unhandled options: ' . join(' ', %opts) if %opts; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 22 | 1 | my $xbm = Image::Xbm->new(-file => $file); | |||||||||
| 23 | 1 | $class->convert($xbm); | |||||||||
| 24 | } | ||||||||||
| 25 | |||||||||||
| 26 | 1 | 1; | |||||||||
| 27 | |||||||||||
| 28 | __END__ | ||||||||||