Image::TextMode::Format::IDF - read and write IDF files


Image-TextMode documentation Contained in the Image-TextMode distribution.

Index


Code Index:

NAME

Top

Image::TextMode::Format::IDF - read and write IDF files

DESCRIPTION

Top

The IDF format.

ACCESSORS

Top

* header - A header hashref containing an id, and x0, y0, x1, y1 canvas info

METHODS

Top

new( %args )

Creates a IDF instance.

extensions( )

Returns 'idf'.

AUTHOR

Top

Brian Cassidy <bricas@cpan.org>

COPYRIGHT AND LICENSE

Top


Image-TextMode documentation Contained in the Image-TextMode distribution.

package Image::TextMode::Format::IDF;

use Moose;

extends 'Image::TextMode::Format', 'Image::TextMode::Canvas';

has 'header' => (
    is  => 'rw',
    isa => 'HashRef',
    default =>
        sub { { id => '\x{04}1.4', x0 => 0, y0 => 0, x1 => 0, y1 => 0 } }
);

sub extensions { return 'idf' }

no Moose;

__PACKAGE__->meta->make_immutable;

1;