mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-05 04:25:29 -04:00
Comment too.
This commit is contained in:
parent
0151efb5f6
commit
715bde8358
@ -58,7 +58,7 @@ final class LuminanceToGray implements RasterOp {
|
|||||||
dest = createCompatibleDestRaster(src);
|
dest = createCompatibleDestRaster(src);
|
||||||
}
|
}
|
||||||
|
|
||||||
// If src and dest have alpha component, keep it, otherwise extract luma only
|
// If src and dest have alpha component, keep it, otherwise extract luminance only
|
||||||
int[] bandList = src.getNumBands() > 3 && dest.getNumBands() > 1 ? new int[] {0, 3} : new int[] {0};
|
int[] bandList = src.getNumBands() > 3 && dest.getNumBands() > 1 ? new int[] {0, 3} : new int[] {0};
|
||||||
dest.setRect(0, 0, src.createChild(0, 0, src.getWidth(), src.getHeight(), 0, 0, bandList));
|
dest.setRect(0, 0, src.createChild(0, 0, src.getWidth(), src.getHeight(), 0, 0, bandList));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user