Lattice divides crate::Bitmap or crate::Image into a rectangular grid.
Grid entries on even columns and even rows are fixed; these entries are
always drawn at their original size if the destination is large enough.
If the destination side is too small to hold the fixed entries, all fixed
entries are proportionately scaled down to fit.
The grid entries not on even columns and rows are scaled to fit the
remaining space, if any.
Represents a Canvas that is owned and dropped when it goes out of scope and is bound to
the lifetime of some other value (an array of pixels for example).
SaveLayerFlags provides options that may be used in any combination in SaveLayerRec,
defining how layer allocated by Canvas::save_layer() operates. It may be set to zero,
[PRESERVE_LCD_TEXT], [INIT_WITH_PREVIOUS], or both flags.
SrcRectConstraint controls the behavior at the edge of source Rect, provided to
Canvas::draw_image_rect() when there is any filtering. If kStrict is set, then extra code is
used to ensure it nevers samples outside of the src-rect.