case 24:
pixelType= OS.RGBDirect; cmpSize= 5; cmpCount= 3; break;
	private static int NewPixMap(int w, int h, int depth, int rowBytes) {				int pixelType= 0, pixelSize= 0, cmpSize= 0, cmpCount= 0, pixelFormat= 0;				pixelFormat= depth;				switch (depth) {		case 1:		case 2:		case 4:		case 8:			pixelType= OS.Indexed;			pixelSize= depth;			cmpCount= 1;			cmpSize= depth;			break;				case 16:		case 24:		case 32:			pixelType= OS.RGBDirect;			pixelSize= depth;			if (depth == 16)				cmpSize= 5;			else				cmpSize= 8;			cmpCount= 3;			break;					default:			break;		}				return OS.NewPixMap((short)w, (short)h, (short)rowBytes,				(short)pixelType, (short)pixelSize,				(short)cmpSize, (short)cmpCount, (short)pixelFormat);	}