Comment too.

This commit is contained in:
Harald Kuhr 2021-04-10 18:17:01 +02:00
parent 0151efb5f6
commit 715bde8358

View File

@ -58,7 +58,7 @@ final class LuminanceToGray implements RasterOp {
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};
dest.setRect(0, 0, src.createChild(0, 0, src.getWidth(), src.getHeight(), 0, 0, bandList));