![]() |
|
|
#3
|
||||
|
||||
|
Цитата:
Код:
var xp, xy : Integer; ... For xp := 0 to Image1.Width do For yp := 0 to Image1.Height do If Image1.Pixels[xp,yp] <> Image2.Pixels[xp,yp] then Image3.Pixels[xp,yp] := clRed; Цитата:
Код:
var r, g, b : array [0..1000, 0..1000] of byte; //тут могут быть ошибки, нужен 2 мерный массив xp, xy : Integer; ... For xp := 0 to Image1.Width do For yp := 0 to Image1.Height do begin r := GetRValue(Image1.Pixels[xp,yp]); g := GetGValue(Image1.Pixels[xp,yp]); b := GetBValue(Image1.Pixels[xp,yp]); end; Однако лучше Юзай scanlineЦитата:
Цитата:
Ты тут случаем не про выделение "резиновым" квадратом говоришь? ![]() |