Skip to main content
Toto RoToTO
Inspiring
May 14, 2008
Question

Compound Path.

  • May 14, 2008
  • 2 replies
  • 713 views
Hello,

Every single day, a new problem appears! 🙂
This time I need help on Compound Path stuff.

In a compound Path, how could I retrieve transparency property for each children path? Should I check a flag (like evenodd in path style), should the back most path be visible and the rest transparent ?

Any help will be appreciated.

Best regards,
Thomas.
This topic has been closed for replies.

2 replies

Toto RoToTO
Inspiring
May 14, 2008
I found a solution to my problem. In the first time, I treated CompoundPathArt as GroupArt, and it was a big mistake.

Now, for a CompoundPath, I assume the fact that all children take on the paint and style attributes of the backmost object in the stacking order.

Then, all is about intersection and fill rule between children.

I hope being clear.

Best Regards,
Thomas.
A. Patterson
Inspiring
May 14, 2008
I'm not sure what you mean. You can naturally iterate over the paths that comprise the compound path, asking one for it's opacity if that's what you ant to know. If you're asking how you do to that, you just treat the compound like it was a group & ask for the first child, then iterate over the siblings of that first artwork.

If that's not what you're asking, I'm not sure I understand the question.