On Sat, 26 Nov 2022 02:58:15 GMT, Sergey Bylokhov <[email protected]> wrote:

> The specification for the DataBuffer.TYPE_SHORT/TYPE_FLOAT/TYPE_DOUBLE 
> mentioned that all of them are "Placeholder for future use" which is not true.
> 
> They are used and it is possible to create the ComponentColorModel for each 
> of this transferType. Also, there is a specific data buffer for each: 
> [DataBufferFloat](https://github.com/openjdk/jdk/blob/master/src/java.desktop/share/classes/java/awt/image/DataBufferFloat.java#L67),
>  
> [DataBufferDouble](https://github.com/openjdk/jdk/blob/master/src/java.desktop/share/classes/java/awt/image/DataBufferDouble.java#L67),
>  and 
> [DataBufferShort](https://github.com/openjdk/jdk/blob/master/src/java.desktop/share/classes/java/awt/image/DataBufferShort.java#L74).

Marked as reviewed by azvegint (Reviewer).

-------------

PR: https://git.openjdk.org/jdk/pull/11374

Reply via email to