Struct qt_gui::q_image_io_handler::Transformation
source · pub struct Transformation(/* private fields */);
Expand description
This enum describes the different transformations or orientations supported by some image formats, usually through EXIF.
C++ enum: QImageIOHandler::Transformation
.
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().
Implementations§
source§impl Transformation
impl Transformation
sourcepub const TransformationNone: Transformation = _
pub const TransformationNone: Transformation = _
No transformation should be applied. (C++ enum variant: TransformationNone = 0
)
sourcepub const TransformationMirror: Transformation = _
pub const TransformationMirror: Transformation = _
Mirror the image horizontally. (C++ enum variant: TransformationMirror = 1
)
sourcepub const TransformationFlip: Transformation = _
pub const TransformationFlip: Transformation = _
Mirror the image vertically. (C++ enum variant: TransformationFlip = 2
)
sourcepub const TransformationRotate180: Transformation = _
pub const TransformationRotate180: Transformation = _
Rotate the image 180 degrees. This is the same as mirroring it both horizontally and vertically. (C++ enum variant: TransformationRotate180 = 3
)
sourcepub const TransformationRotate90: Transformation = _
pub const TransformationRotate90: Transformation = _
Rotate the image 90 degrees. (C++ enum variant: TransformationRotate90 = 4
)
sourcepub const TransformationMirrorAndRotate90: Transformation = _
pub const TransformationMirrorAndRotate90: Transformation = _
Mirror the image horizontally and then rotate it 90 degrees. (C++ enum variant: TransformationMirrorAndRotate90 = 5
)
sourcepub const TransformationFlipAndRotate90: Transformation = _
pub const TransformationFlipAndRotate90: Transformation = _
Mirror the image vertically and then rotate it 90 degrees. (C++ enum variant: TransformationFlipAndRotate90 = 6
)
sourcepub const TransformationRotate270: Transformation = _
pub const TransformationRotate270: Transformation = _
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§
source§impl<T: Into<QFlags<Transformation>>> BitOr<T> for Transformation
impl<T: Into<QFlags<Transformation>>> BitOr<T> for Transformation
§type Output = QFlags<Transformation>
type Output = QFlags<Transformation>
|
operator.source§impl Clone for Transformation
impl Clone for Transformation
source§fn clone(&self) -> Transformation
fn clone(&self) -> Transformation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Transformation
impl Debug for Transformation
source§impl From<Transformation> for QFlags<Transformation>
impl From<Transformation> for QFlags<Transformation>
source§fn from(value: Transformation) -> Self
fn from(value: Transformation) -> Self
source§impl From<Transformation> for c_int
impl From<Transformation> for c_int
source§fn from(value: Transformation) -> Self
fn from(value: Transformation) -> Self
source§impl From<i32> for Transformation
impl From<i32> for Transformation
source§impl PartialEq for Transformation
impl PartialEq for Transformation
source§fn eq(&self, other: &Transformation) -> bool
fn eq(&self, other: &Transformation) -> bool
self
and other
values to be equal, and is used
by ==
.