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

Drop shadows
https://forum.pdfsharp.net/viewtopic.php?f=2&t=4273
Page 1 of 1

Author:  patrickps [ Wed Jul 14, 2021 10:56 am ]
Post subject:  Drop shadows

Is there a way of adding a drop shadow to a polygon or other shape being added to a PDF file?

I found this thread but I'm not clear if they were trying to do the same thing.
viewtopic.php?f=2&t=626&hilit=drop+shadow

Essentially this is what I have at the moment being inserted into my document via another page created in PDFSharp:
Image

This is something that gets inserted potentially multiple times into the document but the background colour changes & sometimes the background colour can be quite light. This makes the super-imposed polygon virtually invisible in some cases. Ideally I'd like to add a small drop shadow to the cross polygon added to the PDF page but have no idea how to go about doing this or even if it's possible.

Author:  TH-Soft [ Thu Jul 15, 2021 7:59 am ]
Post subject:  Re: Drop shadows

patrickps wrote:
Is there a way of adding a drop shadow to a polygon or other shape being added to a PDF file?
Should be easy: Draw the same polygon or shape with a small offset using a semi-transparent grey.

Author:  JohnH3 [ Fri Mar 25, 2022 12:21 pm ]
Post subject:  Re: Drop shadows

How would I soften the edge of the drop shadow shape?

The only way I can think to do it is to start with the original shape then copy and scale it by a pixel or 2 then increase the copies transparency by 10%. Then copy the copy and repeat 9 more times so I have 10 shapes with increasing scale and transparency. Is there an easier way?

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