Struct pdf_writer::writers::ExponentialFunction [−][src]
pub struct ExponentialFunction<'a> { /* fields omitted */ }
Expand description
Writer for an exponential 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::exponential_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 /C0
array.
Function result when input is zero. Default is 0.0
.
Write the /C1
array.
Function result when input is one. Default is 1.0
.
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)
.