XPSDocument Writer in Graysacale

752 Views Asked by At

I am using XPSDocumentWriter to create a XPS document in c# , What are the options I have if I have to write the XPSDocument in Grayscale , i.e in black and white.

1

There are 1 best solutions below

6
On

You need to use a method of XPSDocumentWriter which takes a PrintTicket which in turn must be setup with OutputColor = OutputColor.Grayscale;

For details and sample code see http://msdn.microsoft.com/en-us/library/system.printing.printticket.outputcolor.aspx