Search in sources :

Example 1 with ImageFileSet

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();
}
Also used : ImageInput(digilib.io.ImageInput) ImageSize(digilib.util.ImageSize) ImageFileSet(digilib.io.ImageFileSet) DocuDirent(digilib.io.DocuDirent)

Aggregations

DocuDirent (digilib.io.DocuDirent)1 ImageFileSet (digilib.io.ImageFileSet)1 ImageInput (digilib.io.ImageInput)1 ImageSize (digilib.util.ImageSize)1