Canvas.Lattice
- class Lattice
Canvas.Lattice
dividesBitmap
orImage
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.
Classes
Members:
Methods
Attributes
source bounds to draw from
array of colors
array of fill types
number of x-coordinates
x-axis values dividing bitmap
number of y-coordinates
y-axis values dividing bitmap
Methods
- Lattice.__init__(*args, **kwargs)
Attributes
- Lattice.fBounds
source bounds to draw from
- Lattice.fColors
array of colors
- Lattice.fRectTypes
array of fill types
- Lattice.fXCount
number of x-coordinates
- Lattice.fXDivs
x-axis values dividing bitmap
- Lattice.fYCount
number of y-coordinates
- Lattice.fYDivs
y-axis values dividing bitmap
- Lattice.kDefault = <RectType.kDefault: 0>
- Lattice.kFixedColor = <RectType.kFixedColor: 2>
- Lattice.kTransparent = <RectType.kTransparent: 1>