ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder
ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 ImageEnView1.LayersCreateFromFile bug

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Size 
UserName:
Password:
Mode 
Format  BoldItalicizedUnderline Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailBrowse for an image to attach to your post Browse for a zip to attach to your post Insert CodeInsert QuoteInsert List
   
Message 

 

Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
zerob Posted - Nov 27 2019 : 04:22:18
LayersCreateFromFile seems to be broken.
If i have a layer selected and call
ImageEnView1.LayersCreateFromFile('Image1.jpg');
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.
2   L A T E S T    R E P L I E S    (Newest First)
zerob Posted - Nov 29 2019 : 02:03:40
Yes, this does work.
xequte Posted - Nov 28 2019 : 22:17:35
Hi

Thanks. I'll look into that.

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

Nigel
Xequte Software
www.imageen.com