PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

Exception thrown on XGraphics.SmoothingMode (GDI/PDF)
https://forum.pdfsharp.net/viewtopic.php?f=3&t=3258
Page 1 of 1

Author:  inexorabletash [ Sun Jan 03, 2016 11:59 pm ]
Post subject:  Exception thrown on XGraphics.SmoothingMode (GDI/PDF)

When using the GDI+ API and rendering to a PDF, I'm seeing an exception thrown when getting/setting XGraphics.SmoothingMode. Rendering to a bitmap is fine. (Well, some text is offset, but that's a different bug). Exception is at:

https://github.com/empira/PDFsharp/blob ... s.cs#L4492

Debugging in, _gfx is null.

If I add
Code:
if (_gfx != null) { ... }
guards (as are present on some other code paths), everything else appears to be fine, but I haven't dug in deeply to see if that's a correct fix.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/