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
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 ImageEnView1.LayersCreateFromFile bug
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  


83 Posts

Posted - Nov 27 2019 :  04:22:18  Show Profile  Reply
LayersCreateFromFile seems to be broken.
If i have a layer selected and call
the current selected layer gets replaced by Image1.jpg.
If i deselect the current layer by mouse and call the LayersCreateFromFile, nothing happens at all and nothing gets created but the former selected and manually deselected layer gets selected again by imageen.

If no layer exists, nothing happens (no layer gets created and there is no former layer to get selected).

As i understand from the helpfile, it should create a new layer and load the image into it and not tamper with former selected layers.

"Loads an image from a file and adds it as a new image layer."

Simplified (ImageEnView1.LayersCreateFromFile('Image1.jpg');):
A Layer exists and is selected before calling the function -> Selected layer gets replaced by the new image
A Layer exists and is not selected (nothing is selected) -> nothing happens
Nothing exists -> nothing happens.

What should happen (no matter if anything exists or is selected) -> a new lyaer is created and the image is loaded into that new layer.


5040 Posts

Posted - Nov 28 2019 :  22:17:35  Show Profile  Reply

Thanks. I'll look into that.

Does it work correctly if you use LayersAdd( 'C:\Image1.jpg' );

Xequte Software
Go to Top of Page


83 Posts

Posted - Nov 29 2019 :  02:03:40  Show Profile  Reply
Yes, this does work.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To: