Struct pdf_writer::writers::StitchingFunction [−][src]
pub struct StitchingFunction<'a> { /* fields omitted */ }
Expand description
Writer for a stitching function dictionary.
The function result is y_i = C0_i + x^N * (C1_i - C0_i)
where i
is the
current dimension.
This struct is created by PdfWriter::stitching_function
.
Implementations
Write the /Domain
attribute to set where the function is defined.
Required.
Write the /Range
attribute.
Required for sampled and PostScript functions.
Write the /Functions
array.
The functions to be stitched. Required.
Write the /Bounds
array.
The boundaries of the intervals that each function is called in. The array has one less entry than there are stiched functions. Required.
Write the /Encode
array.
Pair of values for each function that maps the stitching domain subsets to the function domain. Required.
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)
.