canvas画布属性有清屏命令吗?(50分)

  • 主题发起人 主题发起人 WoodHeads
  • 开始时间 开始时间
好像没有,你可以用patblt(canvas->handle,0,0,width,leight,0)试试
 
你只需用底色填满整个区域就可以了:
Canvas.Brush.Color=crBlack; //底色为黑色
Canvas.FillRect(Canvas.ClipRect);
 
you can use a function.
But I forgot now.
I will come back to see my program then tell you
 
没有,我记得在Inprise的新闻组上看到过类似问题。用Luchm说的法就行。
 
luckm 好快,英雄所见略同
 
Who says no?
Of course it has.
You just use Refresh.
(DO USE CANVAS.REFRESH,IT IS IMPORTANT)
you just type Refresh.

This is a example:

procedure TForm1.Button1Click(Sender:TObject);
begin
Canvas.TextOut(10,10,'Hello world!');
end;

procedure TForm1.Button2Click(Sender:TObject);
begin
Refresh;
end;
 
只要windows API不提供此服务,Canvas就没辙!就象
CDC类一样,都是GDI提供的那点东西.
 
多人接受答案了。
 

Similar threads

D
回复
0
查看
802
DelphiTeacher的专栏
D
D
回复
0
查看
747
DelphiTeacher的专栏
D
D
回复
0
查看
696
DelphiTeacher的专栏
D
S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
后退
顶部