Enum rawloader::Orientation [−][src]
pub enum Orientation { Normal, HorizontalFlip, Rotate180, VerticalFlip, Transpose, Rotate90, Transverse, Rotate270, Unknown, }
Expand description
Possible orientations of an image
Values are taken from the IFD tag Orientation (0x0112) in most cases but they can be obtained from other metadata in the file.
Variants
Implementations
Convert a u16 from the IFD tag Orientation (0x0112) into its corresponding enum value
Convert orientation to an image flip operation tuple. The first field is if x and y coordinates should be swapped (transposed). The second and third field is horizontal and vertical flipping respectively. For a correct result, flipping must be done before transposing.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Orientation
impl Send for Orientation
impl Sync for Orientation
impl Unpin for Orientation
impl UnwindSafe for Orientation
Blanket Implementations
Mutably borrows from an owned value. Read more