Fields Summary |
---|
protected Rectangle | sourceRegionThe source region. |
protected int | sourceXSubsamplingThe source x subsampling. |
protected int | sourceYSubsamplingThe source y subsampling. |
protected int | subsamplingXOffsetThe subsampling x offset. |
protected int | subsamplingYOffsetThe subsampling y offset. |
protected int[] | sourceBandsThe source bands. |
protected ImageTypeSpecifier | destinationTypeThe destination type. |
protected Point | destinationOffsetThe destination offset. |
protected IIOParamController | defaultControllerThe default controller. |
protected IIOParamController | controllerThe controller. |
Methods Summary |
---|
public boolean | activateController()Activates the controller.
// TODO implement
throw new UnsupportedOperationException("not implemented yet");
|
public javax.imageio.IIOParamController | getController()Gets the current IIOParamController controller for this IIOParam.
// TODO implement
throw new UnsupportedOperationException("not implemented yet");
|
public javax.imageio.IIOParamController | getDefaultController()Gets the default IIOParamController controller for this IIOParam.
// TODO implement
throw new UnsupportedOperationException("not implemented yet");
|
public java.awt.Point | getDestinationOffset()Gets the offset in the destination image for placing pixels.
return (Point)destinationOffset.clone();
|
public javax.imageio.ImageTypeSpecifier | getDestinationType()Gets the type of the destination image as an ImageTypeSpecifier. .
// TODO implement
throw new UnsupportedOperationException("not implemented yet");
|
public int[] | getSourceBands()Gets the array of source bands.
// TODO implement
throw new UnsupportedOperationException("not implemented yet");
|
public java.awt.Rectangle | getSourceRegion()Gets the source region.
if (sourceRegion == null) {
return null;
}
// -- clone it to avoid unexpected modifications
return (Rectangle)sourceRegion.clone();
|
public int | getSourceXSubsampling()Gets the source X subsampling - the number of source columns to advance
for each pixel.
return sourceXSubsampling;
|
public int | getSourceYSubsampling()Gets the source Y subsampling - the number of source rows to advance for
each pixel.
return sourceYSubsampling;
|
public int | getSubsamplingXOffset()Gets the horizontal offset of the subsampling grid.
return subsamplingXOffset;
|
public int | getSubsamplingYOffset()Gets the vertical offset of the subsampling grid.
return subsamplingYOffset;
|
public boolean | hasController()Returns true if IIOParamController is installed for this IIOParam.
// TODO implement
throw new UnsupportedOperationException("not implemented yet");
|
public void | setController(javax.imageio.IIOParamController controller)Sets the IIOParamController to this IIOParam object for providing
settings to this IIOParam.
// TODO implement
throw new UnsupportedOperationException("not implemented yet");
|
public void | setDestinationOffset(java.awt.Point destinationOffset)Sets the offset in the destination image where the decoded pixels are
placed as a result of reading, or specified an area to be written while
writing operation.
if (destinationOffset == null) {
throw new IllegalArgumentException("destinationOffset == null!");
}
this.destinationOffset = (Point)destinationOffset.clone();
|
public void | setDestinationType(javax.imageio.ImageTypeSpecifier destinationType)Sets the specified ImageTypeSpecifier for the destination image.
// TODO implement
throw new UnsupportedOperationException("not implemented yet");
|
public void | setSourceBands(int[] sourceBands)Sets the indices of the source bands.
// TODO implement
throw new UnsupportedOperationException("not implemented yet");
|
public void | setSourceRegion(java.awt.Rectangle sourceRegion)Sets the source region as a Rectangle object.
if (sourceRegion != null) {
if (sourceRegion.x < 0) {
throw new IllegalArgumentException("x < 0");
}
if (sourceRegion.y < 0) {
throw new IllegalArgumentException("y < 0");
}
if (sourceRegion.width <= 0) {
throw new IllegalArgumentException("width <= 0");
}
if (sourceRegion.height <= 0) {
throw new IllegalArgumentException("height <= 0");
}
if (sourceRegion.width <= subsamplingXOffset) {
throw new IllegalArgumentException("width <= subsamplingXOffset");
}
if (sourceRegion.height <= subsamplingYOffset) {
throw new IllegalArgumentException("height <= subsamplingXOffset");
}
// -- clone it to avoid unexpected modifications
this.sourceRegion = (Rectangle)sourceRegion.clone();
} else {
this.sourceRegion = null;
}
|
public void | setSourceSubsampling(int sourceXSubsampling, int sourceYSubsampling, int subsamplingXOffset, int subsamplingYOffset)Sets the source subsampling. The sourceXSubsampling and
sourceYSubsampling parameters specify the number of rows and columns to
advance after every source pixel.
if (sourceXSubsampling <= 0) {
throw new IllegalArgumentException("sourceXSubsampling <= 0");
}
if (sourceYSubsampling <= 0) {
throw new IllegalArgumentException("sourceYSubsampling <= 0");
}
if (subsamplingXOffset <= 0 || subsamplingXOffset >= sourceXSubsampling) {
throw new IllegalArgumentException("subsamplingXOffset is wrong");
}
if (subsamplingYOffset <= 0 || subsamplingYOffset >= sourceYSubsampling) {
throw new IllegalArgumentException("subsamplingYOffset is wrong");
}
// -- does region contain pixels
if (sourceRegion != null) {
if (sourceRegion.width <= subsamplingXOffset
|| sourceRegion.height <= subsamplingYOffset) {
throw new IllegalArgumentException("there are no pixels in region");
}
}
this.sourceXSubsampling = sourceXSubsampling;
this.sourceYSubsampling = sourceYSubsampling;
this.subsamplingXOffset = subsamplingXOffset;
this.subsamplingYOffset = subsamplingYOffset;
|