194195196197198199200201202203204
int size = scanlineStride * height; // Create data buffer short[] data = new short[size]; Utils.memaccess.getShort(dataPtr.lock(), data, xImage.get_xoffset(), size); dataPtr.unlock(); db = new DataBufferShort(data, size); break; } case 8:
210211212213214215216217218219220
int size = scanlineStride * height; // Create data buffer byte[] data = new byte[size]; Utils.memaccess.getByte(dataPtr.lock(), data, xImage.get_xoffset(), size); dataPtr.unlock(); db = new DataBufferByte(data, size); break; } default: {