procedure TForm1.Button1Click(Sender: TObject); var i, j: integer; str: string; cl: TColor; begin memo1.Text := ''; for i := 1 to image1.Height do begin str := ''; for j := 1 to image1.Width do begin cl := image1.Canvas.Pixels[i,j]; str := str + IntToStr(integer(cl)) + ' '; end; memo1.Lines.Add(str); end; end;
var C:TColor; R,G,B:Byte; for x:=1 to 128 do for y:=1 to 128 do begin C:=Image.Picture.Bitmap.Canvas.Pixels[x,y];//颜色 R:=GetRValues(C);//三原色 G:=GetGValues(C);//.. B:=GetBValues(C);//.. ....... end;不知道楼主说的是不是这个.....
var
i, j: integer;
str: string;
cl: TColor;
begin
memo1.Text := '';
for i := 1 to image1.Height do
begin
str := '';
for j := 1 to image1.Width do
begin
cl := image1.Canvas.Pixels[i,j];
str := str + IntToStr(integer(cl)) + ' ';
end;
memo1.Lines.Add(str);
end;
end;
R,G,B:Byte;
for x:=1 to 128 do
for y:=1 to 128 do
begin
C:=Image.Picture.Bitmap.Canvas.Pixels[x,y];//颜色
R:=GetRValues(C);//三原色
G:=GetGValues(C);//..
B:=GetBValues(C);//..
.......
end;不知道楼主说的是不是这个.....