![]() |
digiKam Developer Documentation
Professional Photo Management with the Power of Open Source
|
Public Types | |
enum | ProfileType { InvalidType , Input , Output , Display , Abstract , ColorSpace , DeviceLink , NamedColor } |
Public Member Functions | |
IccProfile () | |
Creates a null profile. | |
IccProfile (const IccProfile &other) | |
IccProfile (const QByteArray &data) | |
Creates a profile from the given data in memory. | |
IccProfile (const QString &filePath) | |
Creates a profile from the given file. | |
void | close () |
Close the profile, freeing resources. | |
QByteArray | data () |
Returns the raw profile data. | |
QString | description () |
Reads the profile description. | |
QString | filePath () const |
Returns the filename that this profile was read from. | |
void * | handle () const |
Access to the LCMS cmsHPROFILE handle. | |
bool | isNull () const |
bool | isOpen () const |
Returns if the profile is opened. | |
bool | isSameProfileAs (IccProfile &other) |
This method compares the actual profile data bit by bit. | |
bool | open () |
Open this profile. | |
operator void * () const | |
bool | operator!= (const IccProfile &other) const |
IccProfile & | operator= (const IccProfile &other) |
bool | operator== (const IccProfile &other) const |
Returns true if both profiles are null, if both profiles are created from the same file profile, or if the loaded profile data is identical. | |
ProfileType | type () |
bool | writeToFile (const QString &filePath) |
Writes the profile to the given file. | |
Static Public Member Functions | |
static IccProfile | adobeRGB () |
static void | considerOriginalAdobeRGB (const QString &filePath) |
static QList< IccProfile > | defaultProfiles () |
Returns a list with the profiles above. | |
static QStringList | defaultSearchPaths () |
Returns the default search paths for ICC profiles. | |
static IccProfile | proPhotoRGB () |
static QList< IccProfile > | scanDirectories (const QStringList &dirs) |
static IccProfile | sRGB () |
Returns the profiles available with RawEngine. | |
static IccProfile | wideGamutRGB () |
void Digikam::IccProfile::close | ( | ) |
You can re-open. Called automatically at destruction.
QByteArray Digikam::IccProfile::data | ( | ) |
Reads the data from disk if loaded from disk and not yet loaded.
|
static |
This does not include any user-specified settings.
QString Digikam::IccProfile::description | ( | ) |
Opens the profile if necessary.
QString Digikam::IccProfile::filePath | ( | ) | const |
returns a null QString() if this profile was loaded from memory.
bool Digikam::IccProfile::open | ( | ) |
Returns true if the operation succeeded or the profile is already open. Returns false if the profile is null or the operation failed. You need to open each profile after construction.
bool Digikam::IccProfile::operator== | ( | const IccProfile & | other | ) | const |
Note: This will not ensure that the data is loaded. Use isSameProfile().
|
static |
You still need to call open() on them.
IccProfile::ProfileType Digikam::IccProfile::type | ( | ) |
< 'nkbf', proprietary in Nikon profiles