ArthurHub / ArthurHub/HTML-Renderer
PrintDocument graphics gdi+ vs gdi issue (winforms)
- Vorherrschende Sprache
- C#
- Sterne
- 1.4k
- Forks
- 550
- Ø Merge
- 14 T. 9 Std.
- Gemergte PRs (30 T.)
- 1
Beschreibung
Hi,
It seems like something is off with regular gdi rendering in the current version. Seems like it is being output at an extremely small resolution, even though I'm passing the correct margin data.
Here's a ghetto phone pic of my printed output:

Here are the statements I'm using:
`HtmlRender.Render(printerGraphics, html, (float)printedMarginArea.Left, (float)printedMarginArea.Top, (float)printedMarginArea.Width);`
`HtmlRender.RenderGdiPlus(printerGraphics, html, (float)printedMarginArea.Left, (float)printedMarginArea.Top, (float)printedMarginArea.Width);`
The regular "render" method appears to be scaling correctly in 1.3.0, but I'm missing too much functionality to be able to use that version. I'm trying to poke around the source code but I'm not able to find the disconnect...
Appreciate it!
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Start by reproducing the issue with PrintDocument using the two mentioned entry points, HtmlRender.Render and HtmlRender.RenderGdiPlus, and the supplied margin values. Compare the printed scaling and inspect the rendering path to identify where regular GDI handling diverges; done means regular Render produces correctly scaled output without losing the functionality required by the reporter.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- csharp
- Bereich
- desktop
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100