You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you have a simple repro? Does adding the visual directly to the FixedPage instead of rendering it on its DrawingContext work for you? (I tried with an ellipse but it looked vector in a DocumentViewer)
I don't have a separate solution with a small repro but the code already posted above shows the problem.
First you have to open an XPS document
Get a FixedPage from the document
Pass that FixedPage as a visual to the code below
The code below takes the vector drawing via the VisualTreeHelper.GetDrawing. When we try to draw the Visual on a differentDrawingContext of a differentFixedPage it gets rasterized. When drawing the Visual on the sameDrawingContext of the FixedPage it is Vector/goodquality.
XPS: When drawing a Visual on a DrawingContext of a FixedPage, the image is being rasterized and losing the Vector quality.
How to draw a Visual on a DrawingContext as a vector without it being rasterized (XPS)?
(found something related but not really the same: https://stackoverflow.com/questions/6490576/wpf-image-vector-format-export-xps/ )
The text was updated successfully, but these errors were encountered: