• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdegraphics API Reference
  • KDE Home
  • Contact Us
 

libs/libkexiv2/libkexiv2

  • KExiv2Iface
  • KExiv2Previews
Public Member Functions | List of all members
KExiv2Iface::KExiv2Previews Class Reference

#include <kexiv2previews.h>

Public Member Functions

 KExiv2Previews (const QString &filePath)
 
 KExiv2Previews (const QByteArray &imgData)
 
 ~KExiv2Previews ()
 
int count ()
 
QByteArray data (int index=0)
 
int dataSize (int index=0)
 
QString fileExtension (int index=0)
 
int height (int index=0)
 
QImage image (int index=0)
 
bool isEmpty ()
 
QString mimeType (int index=0)
 
QString originalMimeType () const
 
QSize originalSize () const
 
int size ()
 
int width (int index=0)
 

Detailed Description

Definition at line 46 of file kexiv2previews.h.

Constructor & Destructor Documentation

KExiv2Iface::KExiv2Previews::KExiv2Previews ( const QString &  filePath)

Open the given file and scan for embedded preview images.

Definition at line 77 of file kexiv2previews.cpp.

KExiv2Iface::KExiv2Previews::KExiv2Previews ( const QByteArray &  imgData)

Open the given image data and scan the image for embedded preview images.

Definition at line 95 of file kexiv2previews.cpp.

KExiv2Iface::KExiv2Previews::~KExiv2Previews ( )

Definition at line 113 of file kexiv2previews.cpp.

Member Function Documentation

int KExiv2Iface::KExiv2Previews::count ( )

Returns how many embedded previews are available.

Definition at line 139 of file kexiv2previews.cpp.

QByteArray KExiv2Iface::KExiv2Previews::data ( int  index = 0)

Retrieve the image data for the specified embedded preview image.

Definition at line 179 of file kexiv2previews.cpp.

int KExiv2Iface::KExiv2Previews::dataSize ( int  index = 0)

For each contained preview image, return the size of the image data in bytes, width and height of the preview, the mimeType and the file extension.

Ensure that index < count(). Previews are sorted by width*height, largest first.

Definition at line 144 of file kexiv2previews.cpp.

QString KExiv2Iface::KExiv2Previews::fileExtension ( int  index = 0)

Definition at line 172 of file kexiv2previews.cpp.

int KExiv2Iface::KExiv2Previews::height ( int  index = 0)

Definition at line 158 of file kexiv2previews.cpp.

QImage KExiv2Iface::KExiv2Previews::image ( int  index = 0)

Loads the data of the specified preview and creates a QImage from this data.

Returns a null QImage if the loading failed.

Definition at line 203 of file kexiv2previews.cpp.

bool KExiv2Iface::KExiv2Previews::isEmpty ( )

Returns if there are any preview images available.

Definition at line 118 of file kexiv2previews.cpp.

QString KExiv2Iface::KExiv2Previews::mimeType ( int  index = 0)

Definition at line 165 of file kexiv2previews.cpp.

QString KExiv2Iface::KExiv2Previews::originalMimeType ( ) const

Returns the mimeType of the original image, detected from the file's content.

Definition at line 131 of file kexiv2previews.cpp.

QSize KExiv2Iface::KExiv2Previews::originalSize ( ) const

Returns the pixel size of the original image, as read from the file (not the metadata).

Definition at line 123 of file kexiv2previews.cpp.

int KExiv2Iface::KExiv2Previews::size ( )
inline

Definition at line 72 of file kexiv2previews.h.

int KExiv2Iface::KExiv2Previews::width ( int  index = 0)

Definition at line 151 of file kexiv2previews.cpp.


The documentation for this class was generated from the following files:
  • kexiv2previews.h
  • kexiv2previews.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:19:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libs/libkexiv2/libkexiv2

Skip menu "libs/libkexiv2/libkexiv2"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdegraphics API Reference

Skip menu "kdegraphics API Reference"
  •     libkdcraw
  •     libkexiv2
  •     libkipi
  •     libksane
  • okular

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal