< prev index next > test/jdk/java/awt/image/ByteInterleavedRasterOffsetsTest.java
Print this page
* @test
* @bug 4954405
* @summary Verify DataBuffer offsets are handled by ByteInterleavedRaster
*/
! public class ByteInterleavedOffsetsTest {
public static void main(String[] args) {
byte[] data = { 0, -1, 0, 0 }; // only set the R sample.
int[] bandOffsets = { 0, 1, 2 };
DataBuffer databuf = new DataBufferByte(data, 3, 1);
* @test
* @bug 4954405
* @summary Verify DataBuffer offsets are handled by ByteInterleavedRaster
*/
! public class ByteInterleavedRasterOffsetsTest {
public static void main(String[] args) {
byte[] data = { 0, -1, 0, 0 }; // only set the R sample.
int[] bandOffsets = { 0, 1, 2 };
DataBuffer databuf = new DataBufferByte(data, 3, 1);
< prev index next >