Add Gradient in XPS Document

Contents
[ ]

Add Horizontal Gradient

Aspose.Page for .NET offers XpsGradientBrush Class, with which you can add gradient on XPS document. You need to specify XpsGradientStop and add XpsPath to the object of XpsDocument class. Following code snippet shows complete functionality to add horizontal gradient on an XPS document:

Add Vertical Gradient

Aspose.Page for .NET offers XpsGradientBrush Class, with which you can add gradient on XPS document. You need to specify XpsGradientStop and add XpsPath to the object of XpsDocument class. Following code snippet shows complete functionality to add vertical gradient on an XPS document:

Add Linear Gradient

Aspose.Page for .NET offers XpsGradientBrush Class, with which you can add gradient on XPS document. You need to specify XpsGradientStop and add XpsPath to the object of XpsDocument class. Following code snippet shows complete functionality to add a linear gradient on an XPS document: