encodeParam = new PNGEncodeParam.Palette(); } else if (colorType == PNG_COLOR_GRAY || colorType == PNG_COLOR_GRAY_ALPHA) {
setBackgroundPaletteIndex(bkgdIndex);
encodeParam = new PNGEncodeParam.Palette(); } else if (colorType == PNG_COLOR_GRAY || colorType == PNG_COLOR_GRAY_ALPHA) {
encodeParam = new PNGEncodeParam.Palette(); } else if (colorType == PNG_COLOR_GRAY || colorType == PNG_COLOR_GRAY_ALPHA) {
param = new PNGEncodeParam.Palette(); if (parami.isPaletteSet()) { int[] palette = parami.getPalette(); size = palette.length/3;
encodeParam = new PNGEncodeParam.Palette(); } else if (colorType == PNG_COLOR_GRAY || colorType == PNG_COLOR_GRAY_ALPHA) {
encodeParam = new PNGEncodeParam.Palette(); } else if (colorType == PNG_COLOR_GRAY || colorType == PNG_COLOR_GRAY_ALPHA) {
encodeParam = new PNGEncodeParam.Palette(); } else if (colorType == PNG_COLOR_GRAY || colorType == PNG_COLOR_GRAY_ALPHA) {
param = new PNGEncodeParam.Palette(); if (parami.isPaletteSet()) { int[] palette = parami.getPalette(); size = palette.length/3;
encodeParam = new PNGEncodeParam.Palette(); } else if (colorType == PNG_COLOR_GRAY || colorType == PNG_COLOR_GRAY_ALPHA) {
encodeParam = new PNGEncodeParam.Palette(); } else if (colorType == PNG_COLOR_GRAY || colorType == PNG_COLOR_GRAY_ALPHA) {
param = new PNGEncodeParam.Palette(); if (parami.isPaletteSet()) { int[] palette = parami.getPalette(); size = palette.length/3;
param = new PNGEncodeParam.Palette(); if (parami.isPaletteSet()) { int[] palette = parami.getPalette(); size = palette.length/3;
((PNGEncodeParam.Palette)param).getPaletteTransparency(); for (byte aT : t) { cs.writeByte(aT);