예제 #1
0
 @Override
 public int getElem(int bank, int i) {
   return 0xff & zpixmap.get_data_element(i);
 }
예제 #2
0
 @Override
 public void setElem(int bank, int i, int val) {
   zpixmap.set_data_element(i, (byte) val);
 }
예제 #3
0
 /**
  * Creates a ZPixmapDataBuffer from an existing ZPixmap.
  *
  * @param zpixmap the ZPixmap to wrap
  */
 ZPixmapDataBuffer(ZPixmap zpixmap) {
   super(TYPE_BYTE, zpixmap.get_data_length());
   this.zpixmap = zpixmap;
 }