[−][src]Enum printpdf::types::plugins::graphics::extgstate::HalftoneType
In PDF 1.2, the graphics state includes a current halftone parameter, which determines the halftoning process to be used by the painting operators. It may be defined by either a dictionary or a stream, depending on the type of halftone; the term halftone dictionary is used generically throughout this section to refer to either a dictionary object or the dictionary portion of a stream object. (The halftones that are defined by streams are specifically identified as such in the descriptions of particular halftone types; unless otherwise stated, they are understood to be defined by simple dictionaries instead.) Deserialized into Integer: 1, 5, 6, 10 or 16
Variants
Type1(f64, f64, SpotFunction)
1: Defines a single halftone screen by a frequency, angle, and spot function
Type5(Vec<HalftoneType>)
5: Defines an arbitrary number of halftone screens, one for each colorant or color component (including both primary and spot colorants). The keys in this dictionary are names of colorants; the values are halftone dictionaries of other types, each defining the halftone screen for a single colorant.
6: Defines a single halftone screen by a threshold array containing 8-bit sample values.
10: Defines a single halftone screen by a threshold array containing 8-bit sample values, representing a halftone cell that may have a nonzero screen angle.
16: (PDF 1.3) Defines a single halftone screen by a threshold array containing 16-bit sample values, representing a halftone cell that may have a nonzero screen angle.
Implementations
impl HalftoneType
[src]
pub fn get_type(&self) -> i64
[src]
Get the identifer integer of the HalftoneType
pub fn into_obj(self) -> Vec<Object>
[src]
Trait Implementations
impl Clone for HalftoneType
[src]
fn clone(&self) -> HalftoneType
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for HalftoneType
[src]
impl PartialEq<HalftoneType> for HalftoneType
[src]
fn eq(&self, other: &HalftoneType) -> bool
[src]
fn ne(&self, other: &HalftoneType) -> bool
[src]
impl StructuralPartialEq for HalftoneType
[src]
Auto Trait Implementations
impl RefUnwindSafe for HalftoneType
impl Send for HalftoneType
impl Sync for HalftoneType
impl Unpin for HalftoneType
impl UnwindSafe for HalftoneType
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,