Struct pdf_writer::writers::SoftMask [−][src]
pub struct SoftMask<'a> { /* fields omitted */ }
Expand description
Writer for a soft mask dictionary.
This struct is created by ExtGraphicsState::soft_mask
.
Implementations
S
: Set the soft mask subtype. Required.
G
: Set the soft mask. Must be a transparency group XObject. The group
has to have a color space set in the /CS
attribute if the mask subtype
is Luminosity
. Required.
BC
: Set the background color for the transparency group. Only
applicable if the mask subtype is Luminosity
. Has to be set in the
group’s color space.
TR
: A function that maps from the group’s output values to the mask
opacity.
Methods from Deref<Target = Dict<'a>>
Start writing a pair with an arbitrary value.
Write a pair with a primitive value.
This is a shorthand for dict.insert(key).primitive(value)
.