|
mp_mosaics
Monstrous Mosaics
|
This is the actual mosaic data-structure which will hold the matrix of sub-images to be written. More...
#include <mosaiccanvas.h>
Public Member Functions | |
| MosaicCanvas (int theRows, int theColumns) | |
| Default constructor. More... | |
| MosaicCanvas (const MosaicCanvas &source) | |
| Copy constructor. More... | |
| int | getRows () const |
| Retrieve the number of rows of images. More... | |
| int | getColumns () const |
| Retrieve the number of columns of images. More... | |
| void | setTile (int row, int column, TileImage *img) |
| Set the TiledImage for a particular region. More... | |
| const TileImage & | getTile (int row, int column) |
| Retrieve the current TileImage for a particular row and column. More... | |
| PNG | drawMosaic (int pixelsPerTile) |
| Save the current MosaicCanvas as a file with the following pixels per tile. More... | |
Static Public Attributes | |
| static bool | enableOutput = false |
This is the actual mosaic data-structure which will hold the matrix of sub-images to be written.
This is effectively just a 2-D array of TileImage objects which can be accessed via convenience methods.
| MosaicCanvas::MosaicCanvas | ( | int | theRows, |
| int | theColumns | ||
| ) |
Default constructor.
Constructor.
| theRows | Number of rows to divide the canvas into |
| theColumns | Number of columns to divide the canvas into |
| MosaicCanvas::MosaicCanvas | ( | const MosaicCanvas & | source | ) |
Copy constructor.
| source | The MosaicCanvas object to copy |
| PNG MosaicCanvas::drawMosaic | ( | int | pixelsPerTile | ) |
Save the current MosaicCanvas as a file with the following pixels per tile.
| pixelsPerTile | pixels per Photomosaic tile |
| int MosaicCanvas::getColumns | ( | ) | const |
Retrieve the number of columns of images.
| int MosaicCanvas::getRows | ( | ) | const |
Retrieve the number of rows of images.
| const TileImage & MosaicCanvas::getTile | ( | int | row, |
| int | column | ||
| ) |
| void MosaicCanvas::setTile | ( | int | row, |
| int | column, | ||
| TileImage * | img | ||
| ) |
Set the TiledImage for a particular region.
Note that row and tile indices should be zero-based.
| row | The row |
| column | The column |
| img | The TileImage to set |