Skip to main content

apply_orientation_owned

Function apply_orientation_owned 

Source
pub fn apply_orientation_owned(
    buf: PixelBuf,
    orientation: Orientation,
) -> Result<PixelBuf, At<ConvertError>>
Expand description

Apply explicit orientation to an owned PixelBuf, returning buf zero-copy on Orientation::Identity and always emitting Orientation::Identity metadata on the result (matching apply_orientation).

Pending input buf.orientation() is not implicitly composed; use bake_orientation_owned to apply and clear pending orientation.