.....
Canvas.textout(random(width),random(height),'OK');
....
可以执行!
但下面的为什么不行!
....
var
Canvas1:TCanvas;
begin
Canvas.Create;
Canvas.Canvas.textout(random(width),random(height),'OK');
Canvas.free;
....
Canvas.textout(random(width),random(height),'OK');
....
可以执行!
但下面的为什么不行!
....
var
Canvas1:TCanvas;
begin
Canvas.Create;
Canvas.Canvas.textout(random(width),random(height),'OK');
Canvas.free;
....
然后就可以画了。
Bitmap.create
Bitmap.Canvas.Canvas.textout(random(width),random(height),'OK');
Bitmap.free;
Bitmap.create
Bitmap.Canvas.textout(random(width),random(height),'OK');
Bitmap.free;
请问这句中的Canvas.textout(random(width),random(height),'OK');的CANVAS指的是什么?
Form1.Canvas.textout(random(width),random(height),'OK')
是指诸如FORM,BUTTON等控件吗?
http://community.csdn.net/Expert/topic/3131/3131555.xml?temp=.736294