大
大花鸡
Unregistered / Unconfirmed
GUEST, unregistred user!
Canvas.Pixels[x,y:Integer],中x,y做什么?下面的语句是什么意思?
with offscreen.Canvas do
begin
brush.color:=clbtnface;
brush.Style:=bssolid;
pen.Style:=pssolid;
pen.color:=clbtnface;
rectangle(0,0,16,16);
for i:=0 to 7 do begin
pixels[0,i*2]:=$808080;
end;
for i:=0 to 7 do begin
pixels[i*2,0]:=$808080;
end;
pen.color:=0;
brush.Color:=0;
rectangle(6,6,11,11);
pixels[4,8]:=0;//什么意思?
pixels[5,8]:=0;
pixels[11,8]:=0;
pixels[12,8]:=0;
pixels[8,4]:=0;
pixels[8,5]:=0;
pixels[8,11]:=0;
pixels[8,12]:=0;
pixels[5,5]:=0;
pixels[11,11]:=0;
pixels[5,11]:=0;
pixels[11,5]:=0;
pixels[7,7]:=$ffffff;
end;
with offscreen.Canvas do
begin
brush.color:=clbtnface;
brush.Style:=bssolid;
pen.Style:=pssolid;
pen.color:=clbtnface;
rectangle(0,0,16,16);
for i:=0 to 7 do begin
pixels[0,i*2]:=$808080;
end;
for i:=0 to 7 do begin
pixels[i*2,0]:=$808080;
end;
pen.color:=0;
brush.Color:=0;
rectangle(6,6,11,11);
pixels[4,8]:=0;//什么意思?
pixels[5,8]:=0;
pixels[11,8]:=0;
pixels[12,8]:=0;
pixels[8,4]:=0;
pixels[8,5]:=0;
pixels[8,11]:=0;
pixels[8,12]:=0;
pixels[5,5]:=0;
pixels[11,11]:=0;
pixels[5,11]:=0;
pixels[11,5]:=0;
pixels[7,7]:=$ffffff;
end;