Recent Posts
Selamat datang di Coding Delphi Land Weblog kumpulan source code pemogram delphi
(Bukan maksud untuk menggurui tetapi marilah kita berbagi ilmu tuk perkembangan kemajuan teknologi kita
Selasa, 17 November 2009
Fill Rectangle Pixel Method
procedure TForm1.BitBtn4Click(Sender: TObject);
//fill bm pixel by pixel
var x,y : byte;
k : integer;
begin
t1 := gettickcount;
with bm do with canvas do
for k := 1 to 100 do
for y := 0 to 99 do
for x := 0 to 99 do
pixels[x,y] := $ff0000;
t2 :=gettickcount;
showtime(1000000);
end;
//fill bm pixel by pixel
var x,y : byte;
k : integer;
begin
t1 := gettickcount;
with bm do with canvas do
for k := 1 to 100 do
for y := 0 to 99 do
for x := 0 to 99 do
pixels[x,y] := $ff0000;
t2 :=gettickcount;
showtime(1000000);
end;
0 komentar:
Posting Komentar