pub fn decode(
data: &[u8],
color_transform: bool,
scale_denom: u32,
) -> Result<Image, Error>Expand description
Decode data at 1/scale_denom (1, 2, 4 or 8 — libjpeg’s DCT scaling,
which pdfium requests for an image at least twice the bitmap’s size:
resolution_levels_to_skip); the output is ceil(w/scale_denom) ×
ceil(h/scale_denom). color_transform is the PDF’s /ColorTransform
decode parameter (default 1), which pdfium forces on when an Adobe marker
is present and otherwise uses to decide whether a 3-component image is
converted from YCbCr or handed over raw.