pub struct HalftoneScreen {
pub frequency: f64,
pub angle: f64,
pub type4_tokens: Option<Arc<Vec<u8>>>,
pub sampled_2d: Option<Arc<Vec<f64>>>,
}Expand description
A pre-computed halftone screen for PDF output.
Fields§
§frequency: f64§angle: f64§type4_tokens: Option<Arc<Vec<u8>>>Spot function as PDF Type 4 calculator bytes (e.g., b“{ dup mul exch dup mul add 1 exch sub }“). None if conversion failed (falls back to sampled_2d).
sampled_2d: Option<Arc<Vec<f64>>>Spot function sampled on a 64×64 grid (4096 f64 values, domain [-1,1]², range [0,1]).
Used when Type 4 decompilation fails.
Trait Implementations§
Source§impl Clone for HalftoneScreen
impl Clone for HalftoneScreen
Source§fn clone(&self) -> HalftoneScreen
fn clone(&self) -> HalftoneScreen
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for HalftoneScreen
impl RefUnwindSafe for HalftoneScreen
impl Send for HalftoneScreen
impl Sync for HalftoneScreen
impl Unpin for HalftoneScreen
impl UnsafeUnpin for HalftoneScreen
impl UnwindSafe for HalftoneScreen
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