PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Mon Jun 25, 2018 1:52 am

All times are UTC

Forum rules

Please read this before posting on this forum: Forum Rules

Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Images in PDFs
PostPosted: Fri Sep 08, 2017 9:58 pm 

Joined: Wed Sep 02, 2015 9:54 pm
Posts: 3
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

Reply with quote  
 Post subject: Re: Images in PDFs
PostPosted: Sat Sep 09, 2017 7:50 am 
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 378
Location: CCAA

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.

Best regards
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)

Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC

Who is online

Users browsing this forum: Baidu [Spider] and 5 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group