Struct docima::ImageFile [−][src]
pub struct ImageFile { /* fields omitted */ }Expand description
An image file generator.
The minimum required setup methods are: width,
height and path
Example
ⓘ
ImageFile::new() .width(600) .height(400) .path("images/plotters-histogram.html") .overwrite(true) .title("the title") .alt("the alt text") .wrapper("div") .wrapper_style("padding: 10px; background-color: red;") .generate(my_generator_function)?;
Implementations
Sets the wrapper tag alt attribute.
Sets the wrapper tag title attribute.
Sets the wrapper tag id attribute.
Sets the wrapper tag class attribute.
Sets the wrapper tag style attribute.
Sets the wrapper tag href attribute.
The wrapper must be an anchor tag (a) in order for this to be used.
Sets the wrapper tag target attribute.
The wrapper must be an anchor tag (a) in order for this to be used.