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
 LayersCurrent bug with Selectable

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

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
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 - May 19 2015 : 05:13:22
I set the background layer Selectable of a imported PSD to not selectable,
so it can't be moved/resized,
but after this, i can't manipulate this layer anymore...

Setting a layer to

ImageEnView1.Layers[n].Selectable := False;

makes it immune to all processing, as

ImageEnView1.LayersCurrent := n;

won't work anymore.
So

ImageEnView1.Proc.Resample(w,-1,TResampleFilter.rfLanczos3,True);

doesn't change anything.
4   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - May 20 2015 : 00:50:23
Hi

1. That is correct. You cannot set LayersCurrent for a layer that is not selectable (i.e. cannot be "current"). You would need to make it selectable before setting LayersCurrent.

2. Yes, it does not consider layers. I will fix for the next release.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
zerob Posted - May 19 2015 : 16:29:05
Actually these are two distinct things.
The first Selectable / LayersCurrent / Resample case is a bug where "Selectable" disables processing for this layer as it can't be set to LayersCurrent. So my Resample( isn't working.

The second case with ChangeResolution is also a bug, as it only resamples the background layer and neither all layers nor the one selected with LayersCurrent. So i think it was intended for images without layers.
w2m Posted - May 19 2015 : 15:43:30
I do not believe it is a bug. It is the way ImageEn was developed. When you are processing with layers only the current layer is processed. If you want the same procedure to be applied to all layers then you have to loop through the layers, set the current layer and run the procedure on the layer.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
zerob Posted - May 19 2015 : 05:22:17
ChangeResolution(300,rfNone); also does not resample the whole image and all layers as expected and also won't work with the above "selectable := False".