pub struct Tone {
pub lines: f64,
pub resolution: f64,
pub angle: f64,
pub shape: u32,
pub mode: u32,
pub density: f64,
pub unknown: (u32, u32),
}Expand description
Settings of a switched-on tone effect.
Fields§
§lines: f64Lines per inch.
resolution: f64The resolution lines refers to (dpi).
angle: f64Screen angle in degrees.
shape: u32Dot shape: 1 round, 2 square, 4 lines.
mode: u32Where the density comes from: 0 the image, 2 density.
density: f64The fixed density, 0..1.
unknown: (u32, u32)Words 13 and 14, not decoded (0 in most layers).
Implementations§
Source§impl Tone
impl Tone
Sourcepub fn parse(section: &[u8]) -> Option<Tone>
pub fn parse(section: &[u8]) -> Option<Tone>
The settings when the section switches the tone on.
Sourcepub fn is_approximate(&self) -> bool
pub fn is_approximate(&self) -> bool
Whether the drawing of these settings is not known exactly: other shapes are drawn as round dots, other modes take the density from the image, and lines matched only at 0° (96 %).
Trait Implementations§
impl Copy for Tone
impl StructuralPartialEq for Tone
Auto Trait Implementations§
impl Freeze for Tone
impl RefUnwindSafe for Tone
impl Send for Tone
impl Sync for Tone
impl Unpin for Tone
impl UnsafeUnpin for Tone
impl UnwindSafe for Tone
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