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
 [ImageEn] Layers versus Navigator
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Dmitri

Netherlands
4 Posts

Posted - Sep 12 2011 :  04:09:21  Show Profile  Reply
I've got some problems on displaying layered images in a TImageEn Navigator.

I've got two TImageEnView components on a form. One of the two components is set as a Navigator using the following code:
ImageEnView1->SetNavigator(ImageEnView2, TIENavigatorOptions);

The basic component is using layers. The problem is that the layers are not shown in the Navigator. Only the first layer is visible. Is there a solution for this?

I'm using C++ Builder XE, Windows Vista and ImageEn 3.0.0.

Thank you in advance for your response.

klausdoege

Germany
389 Posts

Posted - Sep 12 2011 :  05:00:03  Show Profile  Reply
I have the same problem.
I have found no solution until now.

Klaus
Go to Top of Page

w2m

USA
1990 Posts

Posted - Sep 12 2011 :  06:10:53  Show Profile  Reply
There are no built-in procedures to show all layers with Navigator that I am aware of. You can however show all layers by saving the layers as a stream in the main ImageENView then load the stream into a second ImageEnView. Unfortunately you loose the navigator selection when you do this but I suspect you could show the the navigator selection in this code afterwards:

ms := TMemoryStream.Create;
  try
    ImageENView2.LayersSaveToStream( ms );
    ms.Position := 0;
    ImageEnView1.LayersLoadFromStream( ms );
    ImageEnView1.LayersMergeAll;
    // create the navigator selection here...
    ImageEnView1.Update;
  finally
    ms.Free;
  end;


When using this code do not call ImageEnView1->SetNavigator or you will have problems.

William Miller
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: