I'm trying to get layer information from a psd file, in a C# project.
By using the PSD Plugin for Paint.Net or MagickImage, I'm able to get the position, size, content and some visual properties of each layer.
But I can't find properties or functions which can tell the relationship of the layers.
Is there a way to find out which layer is parent of another? or which layer is in same group of another?
Using PSD plugin for Paint.Net, Layer relationship can be found from the AdditionalInfo of each Layer.
for example, layers look like this:
(OF for OpenFolder, L(SD) for Layer which is SectionDivider)
[A(OF), A0, A1(OF), A10, L(SD), L(SD), B(OF), B0(OF), B00, L(SD), B1, L(SD)]
can be translate to this layer tree: