What is equivalent of VCL bmp.Canvas.CopyMode on the Delphi FireMonkey for find different of two bmp?

  

I get different between of two pictures according of this procedure :
procedure DifBmp(nbmp:tbitmap;bmp1,bmp2:tbitmap);
var rec:trect;
begin
nbmp.Assign(bmp1);
nbmp.Canvas.CopyMode:= cmSrcInvert;
rec:=rect(0,0,bmp1.Width,bmp1.Height);
nbmp.Canvas.CopyRect(rec, bmp2.Canvas,rec);
end;

I search net and can’t find any equivalent of it for FireMonkey.
Of Course compare pixel by pixel is a solution but it is very slowly.
thanks for any help.

Comments are closed.