Predefined Readers > The Image File Reader > The IlvImageTileLoader Class
 
The IlvImageTileLoader Class
This class is used to read a set of images that are parts of a larger image. This tile loader allows an application to load only the images that are visible at a given time, each image corresponding to a tile. Each file must be named so that it is possible to construct its file name knowing the row index and column index of the corresponding tile. To use this tile loader, you must provide the information needed to reconstruct the file name for a given tile: a pattern that matches the file naming scheme and two formatting strings.
IlvImageTileLoader loader =
new IlvMapImageTileLoader(IlvDisplay* display,
const char* pattern,
const char* rowFormatString,
const char* colFormatString,
IlvMapAdapter* adapter);
The pattern argument must contain one ‘%r’ and one ‘%c’ conversion specifier. The %c conversion specifier is used to convert the row index of the tile, and the %c conversion specifier is used to convert the column index of the tile. These conversion parameters will be replaced accordingly with the rowFormatString and the colFormatString parameters. These formatting strings are interpreted as the regular C function printf used as column and row specifier. For file naming schemes that are not based on row/column numbers, you can subclass IlvImageTileLoader and override the getFileName method.

Version 5.5.1
Copyright © 2012, Rogue Wave Software, Inc. All Rights Reserved.