The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Graphics::Magick::Object::Image - An individual image to play around with.

VERSION

Version 0.01_01

STATUS

This is a completely experimental module, so all interfaces will very likely change. Please don't rely on it until version 1.0!

SYNOPSIS

A single image available for manipulation.

    use Graphics::Magick::Object::Image;

    my $image1 = new Graphics::Magick::Object::Image();
    my $image2 = new Graphics::Magick::Object::Image(filename => 'filename.png');
    

Or, alternately: use Graphics::Magick::Object; my $magick = new Graphics::Magick::Object(); my $image = $magick->read('filename.png');

ATTRIBUTES

magick

The Graphics::Magick object we're a wrapper around.

filename

The filename that this image is to be loaded from.

width

The width of this image.

height

The height of this image.

format

The format of this image, as described by Graphics::Magick.

mimetype

The format of this image, as represented by a MIME type.

METHODS

BUILD

We read off the filename on load.

load_from_file

    $magick->load_from_file($filename)

Loads a file and sets up all the variables.

export

    $magick->export($filename)

Exports to the filename specified. As with Graphics::Magick, you can use the file extension to export to a particular file type.

AUTHOR

Gaurav Vaidya, <gaurav at cpan.org>

BUGS

Please report any bugs or feature requests to bug-graphics-magick-object-image at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Graphics-Magick-Object. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc Graphics::Magick::Object

You can also look for information at:

ACKNOWLEDGEMENTS

COPYRIGHT & LICENSE

Copyright 2009 Gaurav Vaidya, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.