Struct footile::Mask [] [src]

pub struct Mask { /* fields omitted */ }

A Mask is an 8-bit alpha image mask.

Methods

impl Mask
[src]

[src]

Create a new mask

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

[src]

Get the width in pixels

[src]

Get the height in pixels

[src]

Reset the mask (clear all pixels)

[src]

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

  • filename Name of file to write.