04-10-2017, 11:05 AM
Regarding the TransformationMatrix issue, I strongly suspect that's a bug with Illustrator when using the TransformOptionFillPatterns option. We successfully utilize transformation matrices (and inversions thereof) prolifically in our plugins with no issues, but not in regards to patterns (so we've not encountered the possible bug before).
To create an ArtColor from a pattern, you first must create a PatternStyle object to pass to the right ArtColor constructor. To create a PatternStyle object, you first must acquire the Pattern object in question so you can utilize PatternStyle's constructor. Use the hdi::core::CurrentDocument::patternAtIndex() function to get the pattern you're after. You can create an entirely new pattern with the hdi::core:attern::create() static method.
To create an ArtColor from a pattern, you first must create a PatternStyle object to pass to the right ArtColor constructor. To create a PatternStyle object, you first must acquire the Pattern object in question so you can utilize PatternStyle's constructor. Use the hdi::core::CurrentDocument::patternAtIndex() function to get the pattern you're after. You can create an entirely new pattern with the hdi::core:attern::create() static method.