33 /** 34 * MS Windows platform implementation class for Pixels. 35 */ 36 final class WinPixels extends Pixels { 37 38 private native static int _initIDs(); // returns the native format 39 static { 40 nativeFormat = _initIDs(); 41 } 42 43 private static final int nativeFormat; 44 45 protected WinPixels(int width, int height, ByteBuffer data) { 46 super(width, height, data); 47 } 48 49 protected WinPixels(int width, int height, IntBuffer data) { 50 super(width, height, data); 51 } 52 53 protected WinPixels(int width, int height, IntBuffer data, float scale) { 54 super(width, height, data, scale); 55 } 56 57 static int getNativeFormat_impl() { 58 return nativeFormat; 59 } 60 61 @Override native protected void _fillDirectByteBuffer(ByteBuffer bb); 62 @Override native protected void _attachInt(long ptr, int w, int h, IntBuffer ints, int[] array, int offset); 63 @Override native protected void _attachByte(long ptr, int w, int h, ByteBuffer bytes, byte[] array, int offset); 64 } 65 | 33 /** 34 * MS Windows platform implementation class for Pixels. 35 */ 36 final class WinPixels extends Pixels { 37 38 private native static int _initIDs(); // returns the native format 39 static { 40 nativeFormat = _initIDs(); 41 } 42 43 private static final int nativeFormat; 44 45 protected WinPixels(int width, int height, ByteBuffer data) { 46 super(width, height, data); 47 } 48 49 protected WinPixels(int width, int height, IntBuffer data) { 50 super(width, height, data); 51 } 52 53 protected WinPixels(int width, int height, IntBuffer data, float scalex, float scaley) { 54 super(width, height, data, scalex, scaley); 55 } 56 57 static int getNativeFormat_impl() { 58 return nativeFormat; 59 } 60 61 @Override native protected void _fillDirectByteBuffer(ByteBuffer bb); 62 @Override native protected void _attachInt(long ptr, int w, int h, IntBuffer ints, int[] array, int offset); 63 @Override native protected void _attachByte(long ptr, int w, int h, ByteBuffer bytes, byte[] array, int offset); 64 } 65 |