var Bitmap : TBitMap; begin Bitmap := TBitmap.Create; try with Bitmap do begin LoadFromFile('e:\1.bmp'); Bitmap.Canvas.TextOut(0,0,'啊'); SaveToFile('e:\1.bmp'); end; finally Bitmap.Free; end; end; Microsoft OLE DB Provider for SQL Server 错误 '80040e31' 超时已过期 /Expert/reply.asp,行105
var Bitmap : TBitMap; begin Bitmap := TBitmap.Create; try with Bitmap do begin LoadFromFile('e:\1.bmp'); Canvas.TextOut(0,0,'啊'); SaveToFile('e:\1.bmp'); end; finally Bitmap.Free; end; end;
请问如果我还要指定bmp文件的长度和宽度呢?
还有,如果用你的那段程序写bmp文件的话, 用acdsee打开此bmp文件时出错:bad or unrecognized image header. 还有执行loadfrom的时候总是报错打开文件错误,如何处理? 谢谢了先
Bitmap : TBitMap;
begin
Bitmap := TBitmap.Create;
try
with Bitmap do begin
LoadFromFile('e:\1.bmp');
Bitmap.Canvas.TextOut(0,0,'啊');
SaveToFile('e:\1.bmp');
end;
finally
Bitmap.Free;
end;
end;
Microsoft OLE DB Provider for SQL Server 错误 '80040e31' 超时已过期 /Expert/reply.asp,行105
Bitmap : TBitMap;
begin
Bitmap := TBitmap.Create;
try
with Bitmap do begin
LoadFromFile('e:\1.bmp');
Canvas.TextOut(0,0,'啊');
SaveToFile('e:\1.bmp');
end;
finally
Bitmap.Free;
end;
end;
用acdsee打开此bmp文件时出错:bad or unrecognized image header.
还有执行loadfrom的时候总是报错打开文件错误,如何处理?
谢谢了先