Skip to main content

RenderReport

Struct RenderReport 

Source
pub struct RenderReport {
Show 19 fields pub width: u32, pub height: u32, pub drawn: usize, pub hidden: usize, pub without_pixels: BTreeMap<String, usize>, pub unknown_blend: BTreeMap<i64, usize>, pub blend_modes: BTreeMap<i64, usize>, pub clipped: usize, pub masked: usize, pub effects: BTreeMap<String, usize>, pub effects_skipped: BTreeMap<String, usize>, pub vector_layers: usize, pub text_layers: usize, pub material_layers: usize, pub gradient_layers: usize, pub gradients_approximate: usize, pub tones_approximate: usize, pub correction_layers: usize, pub corrections_approximate: usize,
}
Expand description

What the renderer did, by layer count.

Fields§

§width: u32

Width of the image in pixels.

§height: u32

Height of the image in pixels.

§drawn: usize

Layers drawn.

§hidden: usize

Layers skipped because they or a folder above them are hidden.

§without_pixels: BTreeMap<String, usize>

Layers drawn without pixels of their own (no stored pixels), by kind.

§unknown_blend: BTreeMap<i64, usize>

LayerComposite values not in BlendMode (drawn as normal).

§blend_modes: BTreeMap<i64, usize>

Modes used, by LayerComposite value.

§clipped: usize

Layers clipped to the layer below.

§masked: usize

Layers drawn through a mask.

§effects: BTreeMap<String, usize>

Layer effects drawn, by section name (EffectEdge, …).

§effects_skipped: BTreeMap<String, usize>

Switched-on effects not drawn yet (tone, watercolour edge, line extraction).

§vector_layers: usize

Vector layers drawn from their vector data (see [crate::stroke]).

§text_layers: usize

Text layers drawn from CSP’s rendered text blocks.

§material_layers: usize

Image material layers drawn from their original image (see crate::material).

§gradient_layers: usize

Gradient layers drawn from GradationFillInfo (see crate::gradient), and how many of them only approximately (the 知覚的 mix).

§gradients_approximate: usize

Gradient layers drawn only approximately (see gradient_layers).

§tones_approximate: usize

Tones with settings whose drawing was not measured.

§correction_layers: usize

Correction layers applied (see crate::correction), and how many of them only approximately.

§corrections_approximate: usize

Correction layers applied only approximately (see correction_layers).

Trait Implementations§

Source§

impl Clone for RenderReport

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RenderReport

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for RenderReport

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Serialize for RenderReport

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.