Guillaume Rousse > WWW-Google-Images-0.6.5 > WWW::Google::Images::Image

Download:
WWW-Google-Images-0.6.5.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
Stalled  1
View/Report Bugs
Source  

NAME ^

WWW::Google::Images::Image - Image object for WWW::Google::Images

Constructor ^

new($agent, $content, $context)

Creates and returns a new WWW::Google::Images::Image object.

Accessors ^

$image->content_url()

Returns the url to the image file itself.

$image->context_url()

Returns the url to the web page including the image.

Other methods ^

$image->save_content(%args)

Save the image file. The default is to keep its original file name, but this behavior can be altered using optional parameters.

Optional parameters:

file => $file

Use $file as file name.

dir => $directory

Use $directory as a directory path to save the file. If only 'file' is specified, it will be saved in a path relative to the current working directory.

base => $base

Use $base with lowercase original extension added as file name.

$image->save_context(%args)

Save the web page. The default is to keep its original file name, but this behavior can be altered using optional parameters.

Optional parameters:

file => $file

Use $file as file name.

dir => $directory

Use $directory as a directory path to save the file. If only 'file' is specified, it will be saved in a path relative to the current working directory.

base => $base

Use $base with lowercase original extension added as file name.

COPYRIGHT AND LICENSE ^

Copyright (C) 2004-2006, INRIA.

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

AUTHOR ^

Guillaume Rousse <grousse@cpan.org>

syntax highlighting: