Q: The Pattern Test sample shows how to create an Axial Gradient, but only with 2 colors. I want to create a gradient with 3 or more colors. How can I do this with the Apryse SDK?
A: You may create a gradient with multiple colors by defining a stitching function. For more information on this, you can refer to the PDF Spec Chapter 7.10.4 Type 3 (Stitiching) Functions.
Below is an example with 3 colors, but you can modify the code to add as many colors as you like:
PatternTest.cs (4.4 KB)