Package net.sf.jpluck.plucker

Examples of net.sf.jpluck.plucker.CompositeImageRecord


    }

    public CompositeImageRecord createCompositeImageRecord(String[] segmentURIs, int rows, boolean alternate) {
        String a = (alternate ? ".alternate" : "");
        String s = (isRedirected() ? redirectionURI : uri) + a;
        CompositeImageRecord imageRecord = new CompositeImageRecord(s, segmentURIs, rows);
        if (isRedirected()) {
            imageRecord.setAlternateURI(uri + a);
        }
        return imageRecord;
    }
View Full Code Here


            for (int i = 0, n = compositeBitmap.getRows(); i < n; i++) {
                segmentURIs[i] = uri + "-" + (i + 1);
                pluckerDocument.addRecord(new ImageRecord(segmentURIs[i], compositeBitmap.getBitmapAt(i, 0)));
            }

            CompositeImageRecord imageRecord = resource.createCompositeImageRecord(segmentURIs, 1, alternate);
            pluckerDocument.addRecord(imageRecord);
        }
    }
View Full Code Here

      String[] uris = new String[compositeBitmap.getRows()];
      for (int j = 0, n = compositeBitmap.getRows(); j < n; j++) {
        uris[j] = "http://127.0.0.1/-" + j;
        document.addRecord(new ImageRecord(uris[j], compositeBitmap.getBitmapAt(j, 0)));
      }
      document.addRecord(new CompositeImageRecord("http://127.0.0.1/", uris, 1));
        }

        if (name.length() > 31) {
            name = name.substring(0, 31).trim();
        }
View Full Code Here

      String[] uris = new String[compositeBitmap.getRows()];
      for (int j = 0, n = compositeBitmap.getRows(); j < n; j++) {
        uris[j] = uri + "-" + j;
        document.addRecord(new ImageRecord(uris[j], compositeBitmap.getBitmapAt(j, 0)));
      }
      document.addRecord(new CompositeImageRecord(uri, uris, 1));
      if (!noBookmarks) {
        document.addBookmark(file.getName(), uri);
      }
    }
View Full Code Here

TOP

Related Classes of net.sf.jpluck.plucker.CompositeImageRecord

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.