void showColorForPixel(int x, int y) { if (x >= 0 && x < imageData.width && y >= 0 && y < imageData.height) { int pixel = imageData.getPixel(x, y); RGB rgb = imageData.palette.getRGB(pixel); boolean hasAlpha = false; int alphaValue = 0;
for (int x = 0; x < data.width; x++) { int pixel = data.getPixel(x, y); RGB rgb = palette.getRGB(pixel); bufferedImage.setRGB(x, y, rgb.red << 16 | rgb.green << 8 | rgb.blue);
for (int x = 0; x < data.width; x++) { int pixel = data.getPixel(x, y); RGB rgb = palette.getRGB(pixel); pixelArray[0] = rgb.red; pixelArray[1] = rgb.green;
int pixel = buffer[xPos]; int dstDataIndex = dstRowIndex + xPos; RGB rgb = palette.getRGB(pixel); int r = rgb.red; int g = rgb.green;
int transRed = 0, transGreen = 0, transBlue = 0; if (palette.isDirect) { RGB rgb = palette.getRGB(image.transparentPixel); transRed = rgb.red; transGreen = rgb.green;
int pixel = buffer[xPos]; int dstDataIndex = dstRowIndex + xPos; RGB rgb = palette.getRGB(pixel); int r = rgb.red; int g = rgb.green;
RGB rgb = null; if (palette.isDirect) { rgb = palette.getRGB(image.transparentPixel); } else { if (image.transparentPixel < palette.colors.length) { rgb = palette.getRGB(image.transparentPixel); RGB rgb = null; if (palette.isDirect) { rgb = palette.getRGB(image.transparentPixel); } else { if (image.transparentPixel < palette.colors.length) { rgb = palette.getRGB(image.transparentPixel);
int pixel = buffer[xPos]; int dstDataIndex = dstRowIndex + xPos; RGB rgb = palette.getRGB(pixel); int r = rgb.red; int g = rgb.green;
RGB rgb = null; if (palette.isDirect) { rgb = palette.getRGB(image.transparentPixel); } else { if (image.transparentPixel < palette.colors.length) { rgb = palette.getRGB(image.transparentPixel); RGB rgb = null; if (palette.isDirect) { rgb = palette.getRGB(image.transparentPixel); } else { if (image.transparentPixel < palette.colors.length) { rgb = palette.getRGB(image.transparentPixel);
int pixel = buffer[xPos]; int dstDataIndex = dstRowIndex + xPos; RGB rgb = palette.getRGB(pixel); int r = rgb.red; int g = rgb.green;
RGB rgb = null; if (palette.isDirect) { rgb = palette.getRGB(image.transparentPixel); } else { if (image.transparentPixel < palette.colors.length) { rgb = palette.getRGB(image.transparentPixel); RGB rgb = null; if (palette.isDirect) { rgb = palette.getRGB(image.transparentPixel); } else { if (image.transparentPixel < palette.colors.length) { rgb = palette.getRGB(image.transparentPixel);
int pixel = buffer[xPos]; int dstDataIndex = dstRowIndex + xPos; RGB rgb = palette.getRGB(pixel); int r = rgb.red; int g = rgb.green;
int pixel = buffer[xPos]; int dstDataIndex = dstRowIndex + xPos; RGB rgb = palette.getRGB(pixel); int r = rgb.red; int g = rgb.green;
srcBlue = (srcPalette.blueShift < 0) ? srcBlue >>> -srcPalette.blueShift : srcBlue << srcPalette.blueShift; } else { RGB rgb = srcPalette.getRGB(srcPixel); srcRed = rgb.red; srcGreen = rgb.green;
srcBlue = (srcPalette.blueShift < 0) ? srcBlue >>> -srcPalette.blueShift : srcBlue << srcPalette.blueShift; } else { RGB rgb = srcPalette.getRGB(srcPixel); srcRed = rgb.red; srcGreen = rgb.green;
for (int y = 0; y < height; y++) { for (int x = 0; x < width; x++) { RGB rgb = imgPixels.palette.getRGB(imgPixels.getPixel(x, y)); if (rgb.red == 255 && rgb.green == 255 && rgb.blue == 255) { inPixels[offset] = (rgb.red << 16) | (rgb.green << 8) | rgb.blue;
for (int y = 0; y < height; y++) { for (int x = 0; x < width; x++) { RGB rgb = imgPixels.palette.getRGB(imgPixels.getPixel(x, y)); if (rgb.red == 255 && rgb.green == 255 && rgb.blue == 255) { inPixels[offset] = (rgb.red << 16) | (rgb.green << 8)
RGB cBack = backPalette.getRGB(backData.getPixel(x, y)); int aBack = backData.getAlpha(x, y); if (backMask != null && backMask.getPixel(x, y) == 0) final int fx = x - foregroundDrawArea.x; final int fy = y - foregroundDrawArea.y; RGB cFore = forePalette.getRGB(foreData.getPixel(fx, fy)); aFore = foreData.getAlpha(fx, fy); if (foreMask != null && foreMask.getPixel(fx, fy) == 0)
srcBlue = (srcPalette.blueShift < 0) ? srcBlue >>> -srcPalette.blueShift : srcBlue << srcPalette.blueShift; } else { RGB rgb = srcPalette.getRGB(srcPixel); srcRed = rgb.red; srcGreen = rgb.green;
if (showBackground && backgroundPixel != -1) { RGB backgroundRGB = imageData.palette.getRGB(backgroundPixel); bgColor = new Color(null, backgroundRGB);