A
arkee
Unregistered / Unconfirmed
GUEST, unregistred user!
我要用Delphi生成许多3000*3000的单色彩BMP文件,现在在用最简单的算法,不过速度很不理想。谁有更好的方法?谢啦~~~
for y := 0 to h - 1 do
begin
pt := bmpTemp.ScanLine[y];
for x := 0 to w - 1 do
begin
pt[3*x] := 128;
pt[3*x+1] := 20;
pt[3*x+2] := 100;
end;
end;
for y := 0 to h - 1 do
begin
pt := bmpTemp.ScanLine[y];
for x := 0 to w - 1 do
begin
pt[3*x] := 128;
pt[3*x+1] := 20;
pt[3*x+2] := 100;
end;
end;