Code example for ImageTypeSpecifier

0
 
    @Override 
    public Iterator<ImageTypeSpecifier> getImageTypes(int imageIndex) throws IOException {
        readHeader(); 
        LinkedList<ImageTypeSpecifier> l = new LinkedList<ImageTypeSpecifier>();
        l.add(new ImageTypeSpecifier(RGB, RGB.createCompatibleSampleModel(image.getWidth(), image.getHeight())));
        return l.iterator();
    } 
 
    @Override 
    public IIOMetadata getStreamMetadata() throws IOException {
        return null; 
    } 
 
    @Override 
    public IIOMetadata getImageMetadata(int imageIndex) throws IOException {
        return null; 
    } 
 
    @Override