Skip to main content

apply_document_orientation

Function apply_document_orientation 

Source
pub fn apply_document_orientation(
    image: ImageBuffer<Rgb<u8>, Vec<u8>>,
    angle: f32,
) -> ImageBuffer<Rgb<u8>, Vec<u8>>
Expand description

Rotates the image by the detected document orientation (0/90/180/270°); unsupported angles return the image unchanged.