HPDF-1.7: Generation of PDF documents
Copyright(c) 2023 haskell@henning-thielemann.de
LicenseBSD-style
Maintainerhaskell@henning-thielemann.de
Stabilityexperimental
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Graphics.PDF.Transparency

Contents

Description

PDF transparency

Synopsis

Transparency

data SoftMask Source #

Instances

Instances details
Eq SoftMask Source # 
Instance details

Defined in Graphics.PDF.Draw

Ord SoftMask Source # 
Instance details

Defined in Graphics.PDF.Draw

createSoftMask Source #

Arguments

:: Rectangle

Bounding box

-> Draw a

Content of the soft mask

-> PDF SoftMask 

createTransparencyGroup Source #

Arguments

:: ColorSpace a e 
-> Rectangle

Bounding box

-> Draw b

Painting

-> PDF (PDFReference PDFXForm) 

paintWithTransparency Source #

Arguments

:: SoftMask

Soft mask

-> Draw a

Shape to paint

-> Draw () 

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.