use of digilib.io.ImageFileSet in project digilib by robcast.
the class Manifester method writeCanvases.
/**
* @param dlDir
* @param url
* @param manifest
* @param servletUrl
*/
protected void writeCanvases(JsonGenerator manifest, ManifestParams params) {
/*
* list of canvases
*/
manifest.writeStartArray("canvases");
int idx = 0;
for (DocuDirent imgFile : params.docuDir) {
idx += 1;
ImageFileSet imgFs = (ImageFileSet) imgFile;
ImageInput img = imgFs.getBiggest();
ImageSize imgSize = img.getSize();
if (imgSize == null)
continue;
/*
* canvas
*/
writeCanvas(manifest, idx, imgFile, imgSize, params);
}
// canvases
manifest.writeEnd();
}
Aggregations