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

Methods

impl Mask
[src]

[src]

Create a new mask

  • width Width in pixels.
  • height Height in pixels.

[src]

Write the mask to a PGM (portable gray map) file.

  • filename Name of file to write.

[src]

Write the mask to a PNG (portable network graphics) file.

  • filename Name of file to write.