Methods Summary |
---|
public boolean | canSetSourceRenderSize()Returns true if this ImageReaderParam supports rendering a source image
at an arbitrary size.
return canSetSourceRenderSize;
|
public java.awt.image.BufferedImage | getDestination()Gets the current destination image as BufferedImage.
return destination;
|
public int[] | getDestinationBands()Gets the indices of destination bands.
return destinationBands;
|
public int | getSourceMaxProgressivePass()Gets the index of the maximum pass to be decoded. This method returns
Integer.MAX_VALUE, if getSourceNumProgressivePasses() method returns
value that is equal to Integer.MAX_VALUE. Otherwise this method returns
getSourceMinProgressivePass() + getSourceNumProgressivePasses() - 1.
if (getSourceNumProgressivePasses() == Integer.MAX_VALUE) {
return Integer.MAX_VALUE;
}
return getSourceMinProgressivePass() + getSourceNumProgressivePasses() - 1;
|
public int | getSourceMinProgressivePass()Gets the index of the minimum progressive pass that is decoded, default
is 0.
return minProgressivePass;
|
public int | getSourceNumProgressivePasses()Gets the number of progressive passes. The default value is
Integer.MAX_VALUE.
return numProgressivePasses;
|
public java.awt.Dimension | getSourceRenderSize()Gets the dimension of source image which will be rendered during decoding
process.
return sourceRenderSize;
|
public void | setDestination(java.awt.image.BufferedImage destination)Sets the specified destination image. This image will be used by read,
readAll, and readRaster methods, and a reference to it will be returned
by those methods.
this.destination = destination;
|
public void | setDestinationBands(int[] destinationBands)Sets the indices of the destination bands.
this.destinationBands = destinationBands;
|
public void | setDestinationType(javax.imageio.ImageTypeSpecifier destinationType)
this.destinationType = destinationType;
|
public void | setSourceProgressivePasses(int minPass, int numPasses)Sets the source progressive passes.
minProgressivePass = minPass;
numProgressivePasses = numPasses;
|
public void | setSourceRenderSize(java.awt.Dimension size)Sets the dimension size of source image if an image can be rendered at an
arbitrary size.
if (!canSetSourceRenderSize) {
throw new UnsupportedOperationException("can't set source renderer size");
}
sourceRenderSize = size;
|