mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 01:54:47 +02:00
8180501: RescaleOp.filter does not document IllegalArgumentException if sizes differ
Reviewed-by: bpb, pnarayanan
This commit is contained in:
parent
837250ab0e
commit
a569f5293b
2 changed files with 73 additions and 2 deletions
|
@ -360,7 +360,8 @@ public class RescaleOp implements BufferedImageOp, RasterOp {
|
|||
* of {@code src} is an {@code IndexColorModel},
|
||||
* or if the number of scaling factors and offsets in this
|
||||
* {@code RescaleOp} do not meet the requirements
|
||||
* stated in the class comments.
|
||||
* stated in the class comments, or if the source and
|
||||
* destination images differ in size.
|
||||
*/
|
||||
public final BufferedImage filter (BufferedImage src, BufferedImage dst) {
|
||||
ColorModel srcCM = src.getColorModel();
|
||||
|
@ -473,7 +474,8 @@ public class RescaleOp implements BufferedImageOp, RasterOp {
|
|||
* {@code dst} do not have the same number of bands,
|
||||
* or if the number of scaling factors and offsets in this
|
||||
* {@code RescaleOp} do not meet the requirements
|
||||
* stated in the class comments.
|
||||
* stated in the class comments, or if the source and
|
||||
* destination rasters differ in size.
|
||||
*/
|
||||
public final WritableRaster filter (Raster src, WritableRaster dst) {
|
||||
return filterRasterImpl(src, dst, length, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue