注册 登录
编程论坛 Delphi论坛

请问bmp.scanline方式下如何判断一个点为白色?如下代码为何找不到白色点位置呢?

lkdbdlkq 发布于 2006-09-22 23:50, 756 次点击

for i := 0 to Image1.Picture.Height - 1 do
begin
row:= Image1.Picture.Bitmap.ScanLine[i];
for j := 0 to Image1.Picture.Width - 1 do
if (row[j].rgbtRed = 255) and
(row[j].rgbtgreen=255) and
(row[j].rgbtblue=255) then

showmessage(inttostr(i)+'ddd'+inttostr(j));

end;

我想在找到图片的白色点后,显示一下该点的坐标,为什么这种情况下没有显示?

0 回复
1