to 卷起千堆雪tyn
这是我的代码:
for i:=0 to image1.Picture.Bitmap.Height -1 do
begin
paa:=Image1.Picture.Bitmap.ScanLine;
for j:= 0 to image1.Picture.Bitmap.Width-1 do
begin
if (paa^[j].rgbtred=0) and (paa^[j].rgbtblue=0) and (paa^[j].rgbtgreen=0) then
begin
paa^[j].rgbtGreen:=255;
paa^[j].rgbtBlue:=0;
paa^[j].rgbtRed:=0;
end;
end;
end;
image1.Picture.SaveToFile(edit1.Text);
可运行之后得到的图片不可识别了