pub enum GraySuitability {
Exact,
AcceptableForBilevel,
ColorFallback,
}Expand description
Whether rendering a page straight to grayscale matches rendering it in colour and converting afterwards.
Reported by CompiledDocumentPage::gray_suitability from the features
the page uses, without rendering it.
Variants§
Exact
The page has only plain fills, strokes and text. A direct grayscale render is equivalent.
AcceptableForBilevel
The page has images, patterns or shadings. A direct grayscale render can differ slightly, which does not matter when the result is thresholded to black and white.
ColorFallback
The page uses transparency, soft masks, ICC colour, non-separable blend modes or overprint. Render in colour and convert.
Trait Implementations§
Source§impl Clone for GraySuitability
impl Clone for GraySuitability
impl Copy for GraySuitability
Source§impl Debug for GraySuitability
impl Debug for GraySuitability
impl Eq for GraySuitability
Source§impl PartialEq for GraySuitability
impl PartialEq for GraySuitability
impl StructuralPartialEq for GraySuitability
Auto Trait Implementations§
impl Forget for GraySuitability
impl Freeze for GraySuitability
impl Move for GraySuitability
impl RefUnwindSafe for GraySuitability
impl Send for GraySuitability
impl Sync for GraySuitability
impl Unpin for GraySuitability
impl UnsafeUnpin for GraySuitability
impl UnwindSafe for GraySuitability
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more