mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2026-04-30 00:00:01 -04:00
#573: Better naming: LuminanceToGray
This commit is contained in:
+1
-1
@@ -421,7 +421,7 @@ public final class JPEGImageReader extends ImageReaderBase {
|
||||
ICC_ColorSpace intendedCS = profile != null ? ColorSpaces.createColorSpace(profile) : null;
|
||||
|
||||
if (destination.getNumBands() <= 2 && (csType != JPEGColorSpace.Gray && csType != JPEGColorSpace.GrayA)) {
|
||||
convert = new LumaToGray();
|
||||
convert = new LuminanceToGray();
|
||||
}
|
||||
else if (profile != null && (csType == JPEGColorSpace.Gray || csType == JPEGColorSpace.GrayA)) {
|
||||
// com.sun. reader does not do ColorConvertOp for CS_GRAY, even if embedded ICC profile,
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ import java.awt.image.WritableRaster;
|
||||
* @author last modified by $Author: haraldk$
|
||||
* @version $Id: LumaToGray.java,v 1.0 10/04/2021 haraldk Exp$
|
||||
*/
|
||||
final class LumaToGray implements RasterOp {
|
||||
final class LuminanceToGray implements RasterOp {
|
||||
|
||||
@Override
|
||||
public WritableRaster filter(final Raster src, WritableRaster dest) {
|
||||
Reference in New Issue
Block a user