QJCC homepage

biz.chitec.qdemo.swing
Class BufferedImageBugDemo

java.lang.Object
  extended bybiz.chitec.qdemo.swing.BufferedImageBugDemo

public final class BufferedImageBugDemo
extends java.lang.Object

Shows a bug in Java2D when combining Raster objects with RGB and indexed color models

Version:
$Id: 7c3131b739de74ade5dc6cff71d2efd8a313f3b5 $
Author:
cantamen/Dirk Hillbrecht 2004

Field Summary
private static byte[] greenRGBdata
          A green dot as binary data of a PNG picture in RGB mode
private static byte[] redIDXdata
          A red dot as binary data of a PNG picture with indexed colors (restricted to 16 colors)
private static byte[] redRGBdata
          A red dot as binary data of a PNG picture in RGB mode
 
Constructor Summary
private BufferedImageBugDemo()
           
 
Method Summary
static java.awt.image.BufferedImage combineBufferedImages(java.awt.image.BufferedImage[] images)
          Combines several buffered images into one
static void main(java.lang.String[] args)
          Main demonstration program does not need any parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

greenRGBdata

private static final byte[] greenRGBdata
A green dot as binary data of a PNG picture in RGB mode


redRGBdata

private static final byte[] redRGBdata
A red dot as binary data of a PNG picture in RGB mode


redIDXdata

private static final byte[] redIDXdata
A red dot as binary data of a PNG picture with indexed colors (restricted to 16 colors)

Constructor Detail

BufferedImageBugDemo

private BufferedImageBugDemo()
Method Detail

combineBufferedImages

public static java.awt.image.BufferedImage combineBufferedImages(java.awt.image.BufferedImage[] images)
Combines several buffered images into one


main

public static void main(java.lang.String[] args)
                 throws java.lang.Throwable
Main demonstration program does not need any parameters.

Throws:
java.lang.Throwable

QJCC homepage