Stormeye(le grand retour) 进来

jspxnet 2002-01-12 12:17:14
Image workspace;
Graphics offscreen;
public void init()
{
workspace=createImage(size().width,size().height);
offscreen=workspace.getGraphics();
}
public void paint(Graphics screen)
{
offscreen.drawRect(0,0,size().width,size().height );
//在工作区画一个方块
screen.drawImage(workspace,0,0,this);
//把工作区放在屏幕的(0,0)处
}
public void update(Graphics screen)
{
paint(screen);
}
//---------------------------------------------------
为什么我画不出图像来。
...全文
100 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
Soft21 2002-01-13
  • 打赏
  • 举报
回复
我得好好看看书了,不好意思。
jspxnet 2002-01-12
  • 打赏
  • 举报
回复
我搞定了。

23,405

社区成员

发帖
与我相关
我的任务
社区描述
Java 非技术区
社区管理员
  • 非技术区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧