PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
XGraphics.FromGraphics https://forum.pdfsharp.net/viewtopic.php?f=2&t=3141 |
Page 1 of 1 |
Author: | freica97 [ Tue Jul 07, 2015 3:15 pm ] |
Post subject: | XGraphics.FromGraphics |
I found no samples about the method XGraphics.FromGraphics(Graphics, XSize), so I donĀ“'t no what's the scaling and which size I should use. Further I hoped with the returned XGraphics object of the method I could create an pdf-file, but found no way. The only Thing I could do whith it was painting to the Graphics with XGraphics Methods, but this was not my intention. Please can you explain this. Best regards! |
Author: | TH-Soft [ Tue Jul 07, 2015 4:24 pm ] |
Post subject: | Re: XGraphics.FromGraphics |
Hi! freica97 wrote: The only Thing I could do whith it was painting to the Graphics with XGraphics Methods That's what it is made for.You can get an XGraphics object for a PDF page to draw on PDF. And you can use XGraphics.FromGraphics to use the same XGraphics routines to draw on the screen (e.g. preview) or a printer. The Preview sample uses this. http://pdfsharp.net/wiki/Preview-sample.ashx Download the PDFsharp source package to get the complete source code. http://pdfsharp.codeplex.com/releases |
Author: | freica97 [ Wed Jul 08, 2015 9:40 am ] |
Post subject: | Re: XGraphics.FromGraphics |
Hi, thank you for the Response. Ok I download the sourcecode with all of the samples and I see what you mean. Yesterday I only read the code of the sample (Line 1..Line 81) at the Website and there I don't see something about Preview or XGraphics.FromGraphics so I could not understand the relations. Best regards. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |