Image Formats NG
Public Types | Public Member Functions | Static Public Member Functions | List of all members
ImageExifMeta Class Reference

This class contains exif meta information of the image. More...

Public Types

enum  Tag {
  TagImageWidth = 0x0100, TagImageHeight = 0x0101, TagDocumentName = 0x010d, TagImageDescription = 0x010e,
  TagOrientation = 0x0112
}
 This enum describes possible exif tags. More...
 
enum  Orientation {
  OrientationHorizontal = 1, OrientationHMirror = 2, OrientationRotate180 = 3, OrientationVMirror180 = 4,
  OrientationHMirrorRotate270 = 5, OrientationRotate90 = 6, OrientationHMirrorRotate90 = 7, OrientationRotate270 = 8
}
 This enum describes possible orientation of the image. More...
 

Public Member Functions

 ImageExifMeta ()
 Constructs an empty ImageExifMeta object.
 
 ImageExifMeta (const ImageExifMeta &other)
 Copy-constructs an ImageExifMeta object from the given other object.
 
 ImageExifMeta (ImageExifMeta &&other)
 Move-constructs an ImageExifMeta object from the given other object.
 
 ~ImageExifMeta ()
 Destroys the ImageExifMeta object.
 
ImageExifMetaoperator= (const ImageExifMeta &other)
 Assigns a shallow copy of the other meta to this meta and returns a reference to this meta.
 
ImageExifMetaoperator= (ImageExifMeta &&other)
 Move-assigns other to this ImageExifMeta instance.
 
QHash< Tag, QVariant > toHash () const
 Converts this object to the QHash of containing QVariants.
 
QVariantMap toVariantMap () const
 Converts this object to the QMap of containing QVariants.
 
bool isEmpty () const
 Returns true if this object contains no values.
 
bool hasValue (Tag tag) const
 Returns true if this object contains value for the given tag.
 
QVariant value (Tag tag) const
 Returns QVariant for the value contained in this object for the given tag.
 
void setValue (Tag tag, const QVariant &value)
 Sets the value for the given tag to the given value.
 
void removeValue (Tag tag)
 Removes value for the given tag from this object.
 
void clear ()
 Cleares contents.
 

Static Public Member Functions

static Optional< ImageExifMetafromHash (const QHash< Tag, QVariant > &hash)
 Creates an ImageExifMeta object from the QHash containing QVariants.
 
static Optional< ImageExifMetafromVariantMap (const QVariantMap &map)
 Creates an ImageExifMeta object from the QMap containing QVariants.
 

Detailed Description

This class contains exif meta information of the image.

Member Enumeration Documentation

◆ Orientation

This enum describes possible orientation of the image.

Enumerator
OrientationHorizontal 

Image is horizontal.

OrientationHMirror 

Image is horizontally mirrored.

OrientationRotate180 

Blah blah.

OrientationVMirror180 

Blah blah.

OrientationHMirrorRotate270 

Blah blah.

OrientationRotate90 

Blah blah.

OrientationHMirrorRotate90 

Blah blah.

OrientationRotate270 

Blah blah.

◆ Tag

This enum describes possible exif tags.

Enumerator
TagImageWidth 

Image width.

TagImageHeight 

Image heigth.

TagDocumentName 

Image name.

TagImageDescription 

Image description.

TagOrientation 

Image orientation.

See also
ImageExifMeta::Orientation