@@ -0,0 +1,1682 @@
+//%0A// SubResolutionExample.java%0A//%0A%0Aimport java.io.IOException;%0A%0Aimport loci.formats.FormatException;%0Aimport loci.formats.IFormatReader;%0Aimport loci.formats.ImageReader;%0A%0A/**%0A * Demonstration of the sub-resolution API.%0A *%0A * %3Cdl%3E%3Cdt%3E%3Cb%3ESource code:%3C/b%3E%3C/dt%3E%0A * %3Cdd%3E%3Ca href=%22http://trac.openmicroscopy.org.uk/ome/browser/bioformats.git/components/bio-formats/utils/SubResolutionExample.java%22%3ETrac%3C/a%3E,%0A * %3Ca href=%22http://git.openmicroscopy.org/?p=bioformats.git;a=blob;f=components/bio-formats/utils/SubResolutionExample.java;hb=HEAD%22%3EGitweb%3C/a%3E%3C/dd%3E%3C/dl%3E%0A */%0Apublic class SubResolutionExample %7B%0A%0A  public static void main(String%5B%5D args) throws FormatException, IOException %7B%0A    // parse command line arguments%0A    if (args.length %3C 1) %7B%0A      System.err.println(%22Usage: java SubResolutionExample imageFile%22);%0A      System.exit(1);%0A    %7D%0A    String id = args%5B0%5D;%0A%0A    // configure reader%0A    IFormatReader reader = new ImageReader();%0A    reader.setFlattenedResolutions(false);%0A    System.out.println(%22Initializing file: %22 + id);%0A    reader.setId(id); // parse metadata%0A%0A    int seriesCount = reader.getSeriesCount();%0A%0A    System.out.println(%22  Series count = %22 + seriesCount);%0A%0A    for (int series=0; series%3CseriesCount; series++) %7B%0A      reader.setSeries(series);%0A      int resolutionCount = reader.getResolutionCount();%0A%0A      System.out.println(%22    Resolution count for series #%22 + series +%0A        %22 = %22 + resolutionCount);%0A%0A      for (int r=0; r%3CresolutionCount; r++) %7B%0A        reader.setResolution(r);%0A        System.out.println(%22      Resolution #%22 + r + %22 dimensions = %22 +%0A          reader.getSizeX() + %22 x %22 + reader.getSizeY());%0A      %7D%0A    %7D%0A%0A    reader.close();%0A  %7D%0A%0A%7D%0A

Add example of how to use the sub-resolution API