Copyright | (c) 2023 haskell@henning-thielemann.de |
---|---|
License | BSD-style |
Maintainer | haskell@henning-thielemann.de |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
PDF transparency
Synopsis
- data SoftMask
- createSoftMask :: Rectangle -> Draw a -> PDF SoftMask
- createTransparencyGroup :: ColorSpace a e -> Rectangle -> Draw b -> PDF (PDFReference PDFXForm)
- paintWithTransparency :: SoftMask -> Draw a -> Draw ()
Transparency
createTransparencyGroup Source #
:: ColorSpace a e | |
-> Rectangle | Bounding box |
-> Draw b | Painting |
-> PDF (PDFReference PDFXForm) |
paintWithTransparency Source #
If the Draw Monad paints overlapping geometric primitives or text, the result will certainly not be what you want. Text ignores soft masks. Each primitive other than text is painted with the soft mask over the previous geometric objects. It is very likely, that in this case you want to generate a transparency group for your drawing.