mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-04 12:05:29 -04:00
Minor clean-up.
This commit is contained in:
parent
03ab9558a0
commit
8bf9f7a8f0
@ -156,8 +156,8 @@ class FastCMYKToRGB implements /*BufferedImageOp,*/ RasterOp {
|
||||
|
||||
// This is a workaround for the above code that no longer works.
|
||||
// It wil use 25% more memory, but it seems to work...
|
||||
WritableRaster raster = src.createCompatibleWritableRaster();
|
||||
return raster.createWritableChild(0, 0, src.getWidth(), src.getHeight(), 0, 0, new int[] {0, 1, 2});
|
||||
return src.createCompatibleWritableRaster()
|
||||
.createWritableChild(0, 0, src.getWidth(), src.getHeight(), 0, 0, new int[] {0, 1, 2});
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -72,8 +72,8 @@ final class LuminanceToGray implements RasterOp {
|
||||
|
||||
@Override
|
||||
public WritableRaster createCompatibleDestRaster(final Raster src) {
|
||||
WritableRaster raster = src.createCompatibleWritableRaster();
|
||||
return raster.createWritableChild(0, 0, src.getWidth(), src.getHeight(), 0, 0, new int[] {0});
|
||||
return src.createCompatibleWritableRaster()
|
||||
.createWritableChild(0, 0, src.getWidth(), src.getHeight(), 0, 0, new int[] {0});
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user