Struct footile::Mask
[−]
[src]
pub struct Mask { /* fields omitted */ }
A Mask is an 8-bit alpha image mask.
Methods
impl Mask
[src]
fn new(width: u32, height: u32) -> Mask
[src]
Create a new mask
width
Width in pixels.height
Height in pixels.
fn width(&self) -> u32
[src]
Get the width in pixels
fn height(&self) -> u32
[src]
Get the height in pixels
fn reset(&mut self)
[src]
Reset the mask (clear all pixels)
fn write_pgm(&self, filename: &str) -> Result<()>
[src]
Write the mask to a PGM (portable gray map) file
filename
Name of file to write.