Skip to main content

apply_orientation

Function apply_orientation 

Source
pub fn apply_orientation(
    src: &PixelView<'_>,
    orientation: Orientation,
) -> Result<PixelBuf, At<ConvertError>>
Expand description

Apply orientation to src, returning a freshly allocated tightly packed PixelBuf.

Preserves src.hdr(), src.attached_claims(), and src.origin(). The returned buffer has Orientation::Identity because orientation has been physically applied to the pixels.