I am not sure if this will work for what you are trying to do, but you can do an XOR on a layer.
See the ...\Samples\ImageEditing\Layers.dpr and specifically look at the SelectedLayer Effects Tab:
procedure Tfmain.ComboBox2Change(Sender: TObject);
begin
with ImageEnView1 do
begin
CurrentLayer.Operation := TIERenderOperation(ComboBox2.ItemIndex);
Update;
end;
end;
William Miller