micropdf 0.15.15

A pure Rust PDF library - A pure Rust PDF library with fz_/pdf_ API compatibility
//! Image — compatibility shim.
//!
//! Re-exports from `crate::micropdf::image`.

pub use crate::micropdf::image::{
    MpImage as Image, MpImageFormat as ImageFormat, MpInterpolation as Interpolation,
    MpMaskType as MaskType,
};

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn test_shim_reexport() {
        let img = Image::new(100, 50, None);
        assert_eq!(img.width(), 100);
        assert_eq!(img.height(), 50);
    }
}