前一段要设计一个菜单,弹出菜单的时,背景是透明的。看代码吧,不啰唆了
/** 绘制透明色 * */
public void drawRGB(Graphics g) {
int ai[] = new int[Platform.WIDTH];
for (int j1 = 0; j1 < ai.length; j1++)
ai[j1] = 0x90000000;
g.drawRGB(ai, 0, 0, 0, 0, Platform.WIDTH, Platform.HEIGHT, true); // 绘制透明景色
}
/** 绘制透明色 * */
public void drawRGB(Graphics g) {
int ai[] = new int[Platform.WIDTH];
for (int j1 = 0; j1 < ai.length; j1++)
ai[j1] = 0x90000000;
g.drawRGB(ai, 0, 0, 0, 0, Platform.WIDTH, Platform.HEIGHT, true); // 绘制透明景色
}