Maps > Predefined Readers > The Image File Reader > The IlvImageLayer Class
 
The IlvImageLayer Class
The IlvImageLayer class is an IlvTiledLayer that can be saved in an .ilv file. In particular, it handles all the mechanisms to properly restart the load-on-demand layer when this layer is read from an .ilv file:
IlvImageTileLoader* loader =
new IlvImageTileLoader(display,
"tiles/tile_%c_%r.jpg",
"%03d",
"%02d",
adapter);
IlvMapsError status = loader->getInitStatus();
if(status != IlvMaps::NoError())
return status;
IlvImageLayer* layer = new IlvImageLayer(loader, getTileOrigin());
IlvManager* manager = new IlvManager(display);
manager->addLayer(layer);
manager->save(ofstream("out.ilv"));

Version 6.1
Copyright © 2016, Rogue Wave Software, Inc. All Rights Reserved.