D
dohye
Unregistered / Unconfirmed
GUEST, unregistred user!
onformcreate;
var
Bitmap: TBitmap;
begin
Bitmap := TBitmap.Create;
try
Bitmap.LoadFromFile('MyBitmap.bmp');
Form1.Canvas.Brush.Bitmap := Bitmap;
except
Form1.Canvas.Brush.Bitmap := nil;
Bitmap.Free;
end;
end;
onformpaint;
Canvas.FillRect(ClientRect);
这段程序的结果为什么是背景一片白色而不是MyBitmap.bmp的填充.
请各位大虾尽快帮我一把.
var
Bitmap: TBitmap;
begin
Bitmap := TBitmap.Create;
try
Bitmap.LoadFromFile('MyBitmap.bmp');
Form1.Canvas.Brush.Bitmap := Bitmap;
except
Form1.Canvas.Brush.Bitmap := nil;
Bitmap.Free;
end;
end;
onformpaint;
Canvas.FillRect(ClientRect);
这段程序的结果为什么是背景一片白色而不是MyBitmap.bmp的填充.
请各位大虾尽快帮我一把.