Enum pdf_writer::types::ColorSpaceOperand
source · pub enum ColorSpaceOperand<'a> {
DeviceGray,
DeviceRgb,
DeviceCmyk,
Pattern,
Named(Name<'a>),
}
Variants§
DeviceGray
The predefined, parameterless gray device-dependent color space. Needs no further entries in the resource dictionary. This is not a normed color space, meaning the exact look depends on the device.
Writing cs
with this is equivalent to writing g
.
DeviceRgb
The predefined, parameterless RGB device-dependent color space. Needs no further entries in the resource dictionary.
Writing cs
with this is equivalent to writing rg
.
DeviceCmyk
The predefined, parameterless CMYK device-dependent color space. Needs no further entries in the resource dictionary.
Writing cs
with this is equivalent to writing k
.
Pattern
A pattern with color defined by the pattern itself.
When writing a cs
operation with this, you must also write an scn
operation with a name pointing to an entry in the current resource
dictionary’s pattern dictionary.
Named(Name<'a>)
A named color space defined in the current resource dictionary’s color space dictionary.
When this points to a pattern color space, You must also write an scn
operation with a name pointing to an entry in the current resource
dictionary’s pattern dictionary. The color will
be taken from the tint
passed to SCN
and not the pattern itself.
Trait Implementations§
source§impl<'a> Clone for ColorSpaceOperand<'a>
impl<'a> Clone for ColorSpaceOperand<'a>
source§fn clone(&self) -> ColorSpaceOperand<'a>
fn clone(&self) -> ColorSpaceOperand<'a>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl<'a> Debug for ColorSpaceOperand<'a>
impl<'a> Debug for ColorSpaceOperand<'a>
source§impl<'a> From<Name<'a>> for ColorSpaceOperand<'a>
impl<'a> From<Name<'a>> for ColorSpaceOperand<'a>
source§impl<'a> Hash for ColorSpaceOperand<'a>
impl<'a> Hash for ColorSpaceOperand<'a>
source§impl<'a> PartialEq for ColorSpaceOperand<'a>
impl<'a> PartialEq for ColorSpaceOperand<'a>
source§fn eq(&self, other: &ColorSpaceOperand<'a>) -> bool
fn eq(&self, other: &ColorSpaceOperand<'a>) -> bool
self
and other
values to be equal, and is used
by ==
.