function CanvasToGBText(mCanvas: TCanvas; mRect: TRect;
mBackColor: TColor = clWhite): String; { 文本花式 }
var
I, J: Integer;
S: string;
begin
Result := '';
for J := mRect.Top to mRect.Bottom do begin
S := '';
for I := mRect.Left to mRect.Right do
begin
if mCanvas.Pixels[I, J]=mBackColor then Result := Result + Form1.ComboBox1.Text
else Result := Result + Form1.ComboBox2.Text;
end;
Result := Result + S + #13#10;
end;
end; { CanvasToGBText }
呵呵~~
mBackColor: TColor = clWhite): String; { 文本花式 }
var
I, J: Integer;
S: string;
begin
Result := '';
for J := mRect.Top to mRect.Bottom do begin
S := '';
for I := mRect.Left to mRect.Right do
begin
if mCanvas.Pixels[I, J]=mBackColor then Result := Result + Form1.ComboBox1.Text
else Result := Result + Form1.ComboBox2.Text;
end;
Result := Result + S + #13#10;
end;
end; { CanvasToGBText }
呵呵~~
解决方案 »
- indy10 readstream问题
- EmbeddedWB 如何不下载网页中的flash
- 请教高手啊!!
- 要实现以下功能,代码要如何写
- 同样的代码 在DELPHI7中没问题 在DELPHI XE2却乱码 请帮我看看
- 用ADOQuery怎么读记录到listview空件中?
- 兔子有一个忙需要大家的帮忙,请帮帮我好吗?100分相赠!~~~~~~~~~~~
- 为朋友做个普通的数据库应用程序(朋友在外地),他那儿已经有个access库;我想在我这儿把应用程序做好了给他寄过去;请问我的应用程序跟他的那个库怎么连接???
- midas/socketconnection:异常时如何释放内存,否则,可用内存越来越少,直至崩溃!
- 关于用INSTALLSHELD5.5做DELPHI程序安装盘时的一些问题
- 一个奇怪的问题!!!请帮助解决,谢谢
- 没有FORMS的程序如何设置定时器?是SETTIMER吗?可是它有个参数是HWND,怎么设置?
猫肉不能吃的!
TO:迈克尔.朱珠
在猪那儿吗?
mBackColor: TColor = clWhite): String; { 文本花式 }
var
I, J: Integer;
S: string;
begin
Result := '';
for J := mRect.Top to mRect.Bottom do begin
S := '';
for I := mRect.Left to mRect.Right do
begin
if mCanvas.Pixels[I, J]=mBackColor then Result := Result + '■'
else Result := Result + '□';
end;
Result := Result + S + #13#10;
end;
end; { CanvasToGBText }