Struct footile::Mask
[−]
[src]
pub struct Mask { pub width: u32, pub height: u32, // some fields omitted }
A Mask is an 8-bit alpha image mask.
Fields
width: u32
height: u32
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 write_pgm(&self, filename: &str) -> Result<()>
[src]
Write the mask to a PGM (portable gray map) file.
filename
Name of file to write.
fn write_png(&self, filename: &str) -> Result<()>
[src]
Write the mask to a PNG (portable network graphics) file.
filename
Name of file to write.