Skip to main content

painted_count

Function painted_count 

Source
pub fn painted_count(
    data: &[u8],
    width: usize,
    height: usize,
    boxes: &[Box4],
    page_width: f64,
    page_height: f64,
) -> usize
Expand description

直接扫描每个像素区域,等价于 Pillow crop/getbbox,避免每字符创建图像对象。