返回的字符串 是什么?
function hi(imgOrig1,imgTarget1:TImage):string;
var
x, y : integer;
mask, ch : byte;
begin
Result:='';
mask := $80;
ch := 0;
for y := 0 to imgOrig1.Picture.Bitmap.Height - 1 do
begin
for x := 0 to imgOrig1.Picture.Bitmap.Width - 1 do
begin
if (imgOrig1.Picture.Bitmap.Canvas.Pixels[x, y] <>
imgTarget1.Picture.Bitmap.Canvas.Pixels[x, y]) then
ch := ch or mask;
mask := mask shr 1;
if mask = 0 then
begin
Result := Result + char(ch);
mask := $80;
ch := 0;
end;
end;
end;
end;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货