Classes to support float & double samples have been written for the Java
Advanced Imaging API: DataBufferFloat, DataBufferDouble, and
FloatDoubleColorModel. The source for these should be used to create
three similar classes in java.awt.image. The first two are about 100
lines of Java code and the third is about 600 lines.