Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
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...
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.
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.
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".