Enum imagepipe::Orientation[][src]

pub enum Orientation {
    Normal,
    HorizontalFlip,
    Rotate180,
    VerticalFlip,
    Transpose,
    Rotate90,
    Transverse,
    Rotate270,
    Unknown,
}

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

Methods

impl Orientation
[src]

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

impl Serialize for Orientation
[src]

Serialize this value into the given Serde serializer. Read more

impl<'de> Deserialize<'de> for Orientation
[src]

Deserialize this value from the given Serde deserializer. Read more

impl Hash for Orientation
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Clone for Orientation
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Orientation
[src]

Formats the value using the given formatter. Read more

impl Copy for Orientation
[src]

impl Eq for Orientation
[src]

impl PartialEq<Orientation> for Orientation
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for Orientation

impl Sync for Orientation