NAME

Text::Amuse::Output::Image -- class to manage images

SYNOPSIS

The module is used internally by Text::Amuse, so everything here is pretty much internal only (and underdocumented).

METHODS/ACCESSORS

new(filename => "hello.png", width => 0.5, wrap => 1)

Constructor. Accepts three options: filename, width, as a float, and wrap, as a boolean. filename is mandatory.

These arguments are saved in the objects and can be accessed with:

filename
width
wrap
fmt
desc

Please note that we concatenate the caption as is. It's up to the caller to pass an escaped string.

Formatters

width_html

Width in percent

width_latex

Width as '0.25\textwidth'

METHODS

as_latex

The LaTeX code for the image.

as_html

The HTML code for the image

output

Given that we know the format, just return the right one, using as_html or as_latex.