Skip to main content

mostly_changed

Function mostly_changed 

Source
pub fn mostly_changed(
    rects: &[Quad],
    plain: &[u8],
    annotated: &[u8],
    width: u32,
) -> Vec<bool>
Expand description

Which annotations change at least half of their rectangle (a highlight, a filled shape, a stamp), decided once for the page: plain and annotated are the whole page drawn small, without and with annotations, width pixels wide, and rects the rectangles in its pixels. Deciding per tile instead would split an annotation that two tiles share.

Added in 0.2.0.