Struct pdf_writer::writers::SampledFunction [−][src]
pub struct SampledFunction<'a> { /* fields omitted */ }
Expand description
Writer for a sampled function stream.
This struct is created by PdfWriter::sampled_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 /Size
attribute.
Sets the number of input samples per dimension. Required.
Write the /BitsPerSample
attribute.
Sets the number of bits per input sample. Required.
Write the /Order
attribute.
Choose the implementation kind.
Write the /Encode
attribute.
For each sample, define how the input is mapped to the domain range.
Write the /Decode
attribute.
For each sample, define how the output is mapped to the output range.
Methods from Deref<Target = Stream<'a>>
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)
.