} else if (colorType == PNG_COLOR_GRAY || colorType == PNG_COLOR_GRAY_ALPHA) { encodeParam = new PNGEncodeParam.Gray(); } else { encodeParam = new PNGEncodeParam.RGB();
if (paramg.isBitDepthSet()) { this.bitDepth = paramg.getBitDepth(); if (paramg.isBitShiftSet()) { this.bitShift = paramg.getBitShift(); param = new PNGEncodeParam.Gray(); param = new PNGEncodeParam.Gray();
setBackgroundGray(bkgdGray);
} else if (colorType == PNG_COLOR_GRAY || colorType == PNG_COLOR_GRAY_ALPHA) { encodeParam = new PNGEncodeParam.Gray(); } else { encodeParam = new PNGEncodeParam.RGB();
} else if (colorType == PNG_COLOR_GRAY || colorType == PNG_COLOR_GRAY_ALPHA) { encodeParam = new PNGEncodeParam.Gray(); } else { encodeParam = new PNGEncodeParam.RGB();
} else if (colorType == PNG_COLOR_GRAY || colorType == PNG_COLOR_GRAY_ALPHA) { encodeParam = new PNGEncodeParam.Gray(); } else { encodeParam = new PNGEncodeParam.RGB();
} else if (colorType == PNG_COLOR_GRAY || colorType == PNG_COLOR_GRAY_ALPHA) { encodeParam = new PNGEncodeParam.Gray(); } else { encodeParam = new PNGEncodeParam.RGB();
} else if (colorType == PNG_COLOR_GRAY || colorType == PNG_COLOR_GRAY_ALPHA) { encodeParam = new PNGEncodeParam.Gray(); } else { encodeParam = new PNGEncodeParam.RGB();
if (paramg.isBitDepthSet()) { this.bitDepth = paramg.getBitDepth(); if (paramg.isBitShiftSet()) { this.bitShift = paramg.getBitShift(); param = new PNGEncodeParam.Gray(); param = new PNGEncodeParam.Gray();
} else if (colorType == PNG_COLOR_GRAY || colorType == PNG_COLOR_GRAY_ALPHA) { encodeParam = new PNGEncodeParam.Gray(); } else { encodeParam = new PNGEncodeParam.RGB();
} else if (colorType == PNG_COLOR_GRAY || colorType == PNG_COLOR_GRAY_ALPHA) { encodeParam = new PNGEncodeParam.Gray(); } else { encodeParam = new PNGEncodeParam.RGB();
if (paramg.isBitDepthSet()) { this.bitDepth = paramg.getBitDepth(); if (paramg.isBitShiftSet()) { this.bitShift = paramg.getBitShift(); param = new PNGEncodeParam.Gray(); param = new PNGEncodeParam.Gray();
if (paramg.isBitDepthSet()) { this.bitDepth = paramg.getBitDepth(); if (paramg.isBitShiftSet()) { this.bitShift = paramg.getBitShift(); param = new PNGEncodeParam.Gray(); param = new PNGEncodeParam.Gray();
setTransparentGray(grayTransparentAlpha);
setTransparentGray(grayTransparentAlpha);
setTransparentGray(grayTransparentAlpha);
setTransparentGray(grayTransparentAlpha);
setTransparentGray(grayTransparentAlpha);
setTransparentGray(grayTransparentAlpha);
setTransparentGray(grayTransparentAlpha);