How do I prevent the XPSDocumentWriter from rasterizing my VisualBrush?

I am using the following code to create an XPS document from a FixedDocument.

using (XpsDocument doc = new XpsDocument(package,CompressionOption.NotCompressed))
{
  XpsDocumentWriter xpsWriter = XpsDocument.CreateXpsDocumentWriter(doc);
  xpsWriter.Write(fixedDocument);
  doc.Close();
}

      

This works well, except for one case where I have a filled path that is filled with a tiled art, which it sometimes rasterizes it and creates an ImageBrush instead of traversing the VisualBrush. Unfortunately, the image it creates is a terrible representation of VisualBrush. Its resolution is terrible and crazier, it doesn't even fill the original path!

I've done a ton of digging but couldn't find a setting that prevents rasterization.

Any suggestions?

+3
c # xpsdocument


source to share


No one has answered this question yet

Check out similar questions:

3575
How to list a transfer?
2058
How do I get a consistent byte representation of strings in C # without manually specifying the encoding?
1877
What is a NullReferenceException and how do I fix it?
1786
How to create Excel file (.XLS and .XLSX) in C # without installing Microsoft Office?
1758
How do I generate a random int?
1743
What's the best way to give a C # auto property an initial value?
1742
How to calculate a person's age in C #?
1658
Get int value from enum in c #
1270
Why not inherit from List <T>?
1266
How do I update the GUI from another thread?



All Articles
Loading...
X
Show
Funny
Dev
Pics