[][src]Struct qt_gui::q_image_io_handler::Transformation

#[repr(transparent)]
pub struct Transformation(_);

This enum describes the different transformations or orientations supported by some image formats, usually through EXIF.

C++ enum: QImageIOHandler::Transformation.

C++ documentation:

This enum describes the different transformations or orientations supported by some image formats, usually through EXIF.

This enum was introduced or modified in Qt 5.5.

The Transformations type is a typedef for QFlags<Transformation>. It stores an OR combination of Transformation values.

See also QImageReader::transformation(), QImageReader::setAutoTransform(), and QImageWriter::setTransformation().

Methods

impl Transformation[src]

pub fn to_int(&self) -> c_int[src]

impl Transformation[src]

pub const TransformationNone: Transformation[src]

No transformation should be applied. (C++ enum variant: TransformationNone = 0)

pub const TransformationMirror: Transformation[src]

Mirror the image horizontally. (C++ enum variant: TransformationMirror = 1)

pub const TransformationFlip: Transformation[src]

Mirror the image vertically. (C++ enum variant: TransformationFlip = 2)

pub const TransformationRotate180: Transformation[src]

Rotate the image 180 degrees. This is the same as mirroring it both horizontally and vertically. (C++ enum variant: TransformationRotate180 = 3)

pub const TransformationRotate90: Transformation[src]

Rotate the image 90 degrees. (C++ enum variant: TransformationRotate90 = 4)

pub const TransformationMirrorAndRotate90: Transformation[src]

Mirror the image horizontally and then rotate it 90 degrees. (C++ enum variant: TransformationMirrorAndRotate90 = 5)

pub const TransformationFlipAndRotate90: Transformation[src]

Mirror the image vertically and then rotate it 90 degrees. (C++ enum variant: TransformationFlipAndRotate90 = 6)

pub const TransformationRotate270: Transformation[src]

Rotate the image 270 degrees. This is the same as mirroring it both horizontally, vertically and then rotating it 90 degrees. (C++ enum variant: TransformationRotate270 = 7)

Trait Implementations

impl<T: Into<QFlags<Transformation>>> BitOr<T> for Transformation[src]

type Output = QFlags<Transformation>

The resulting type after applying the | operator.

impl Clone for Transformation[src]

impl Copy for Transformation[src]

impl Debug for Transformation[src]

impl Eq for Transformation[src]

impl From<Transformation> for c_int[src]

impl From<Transformation> for QFlags<Transformation>[src]

impl From<i32> for Transformation[src]

impl PartialEq<Transformation> for Transformation[src]

impl StructuralEq for Transformation[src]

impl StructuralPartialEq for Transformation[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.