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

Images in PDFs
https://forum.pdfsharp.net/viewtopic.php?f=2&t=3660
Page 1 of 1

Author:  willjzaab [ Fri Sep 08, 2017 9:58 pm ]
Post subject:  Images in PDFs

With PDFSharp we can create primitive drawing object like ellipses and rectangles, etc and we can fill them with a solid color. Is it possible to fill them with a repeated image?

Similar to this outcome:
https://docs.microsoft.com/en-us/dotnet ... h-an-image

Author:  TH-Soft [ Sat Sep 09, 2017 7:50 am ]
Post subject:  Re: Images in PDFs

Hi!

Not really my area of expertise. I don't know if PDFsharp supports features like TextureBrush.

I expect you can simulate the effect using Clipping to a Path and repeating the image yourself.
See here:
http://pdfsharp.net/wiki/Graphics-sampl ... gh_path_16

A few more lines of code, but maybe put them into a helper routine.

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