Пример #1
0
 static Visual[] getPseudoColor8(Client c) {
   Vector vec = new Vector();
   vec.addElement(new Visual(Resource.fakeClientId(c), 3, 6, 256, 0, 0, 0));
   Visual[] v = new Visual[vec.size()];
   for (int i = 0; i < vec.size(); i++) {
     v[i] = (Visual) vec.elementAt(i);
   }
   vec.removeAllElements();
   return v;
 }
Пример #2
0
 static Visual[] getTrueColor16(Client c) {
   Vector vec = new Vector();
   vec.addElement(new Visual(Resource.fakeClientId(c), 4, 6, 64, 0xf800, 0x7e0, 0x1f));
   Visual[] v = new Visual[vec.size()];
   for (int i = 0; i < vec.size(); i++) {
     v[i] = (Visual) vec.elementAt(i);
   }
   vec.removeAllElements();
   return v;
 }
Пример #3
0
 static Visual[] getStaticGray8(Client c) {
   Visual[] v = new Visual[1];
   v[0] = new Visual(Resource.fakeClientId(c), 0, 8, 256, 0, 0, 0);
   return v;
 }