ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 XOR Layer
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

bmesser

United Kingdom
234 Posts

Posted - Nov 26 2012 :  03:29:37  Show Profile  Reply
Hi

I ask this question more in hope than anything else, but fear it's probably not possible.

I am drawing a coastline over a satellite image. I have two PNG transparent images one with a black coastline the other with a white. Sometimes the white image would be best other times the black - I just wondered if it was possible do a little manipulation and make the coastline draw XOR so that the coastline was the reverse of what it was layered on?

I can't imagine this is the case but I'm sure there must be a way to it in some other cunning way.

Bruce.

w2m

USA
1990 Posts

Posted - Nov 26 2012 :  09:09:42  Show Profile  Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: