PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Tue Oct 17, 2017 2:54 pm

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 
Offline

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


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

Joined: Sat Mar 14, 2015 10:15 am
Posts: 287
Location: CCAA
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.

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


Top
 Profile  
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: No registered users and 7 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:  
Powered by phpBB® Forum Software © phpBB Group