#include <c4d_basebitmap.h>
Color Profile custom data type.
Public Types | |
enum | COLORPROFILEINFO { COLORPROFILEINFO_DESCRIPTION , COLORPROFILEINFO_MANUFACTURER , COLORPROFILEINFO_MODEL , COLORPROFILEINFO_COPYRIGHT , COLORPROFILEINFO_NAME } |
Private Member Functions | |
ColorProfile () | |
~ColorProfile () | |
ColorProfile (const ColorProfile &src) | |
Alloc/Free | |
static ColorProfile * | Alloc () |
static void | Free (ColorProfile *&profile) |
Default Color Profiles | |
static const ColorProfile * | GetDefaultSRGB () |
static const ColorProfile * | GetDefaultLinearRGB () |
static const ColorProfile * | GetDefaultSGray () |
static const ColorProfile * | GetDefaultLinearGray () |
const maxon::ColorProfile & | GetInternalProfile () const |
void | SetInternalProfile (const maxon::ColorProfile &profile) |
Operators | |
ColorProfile & | operator= (const ColorProfile &src) |
Bool | operator== (const ColorProfile &src) const |
Bool | operator!= (const ColorProfile &src) const |
Open/Write from File/Memory | |
Bool | OpenProfileFromFile (const Filename &fn) |
Bool | OpenProfileFromMemory (const void *mem, Int64 memsize) |
Bool | WriteProfileToFile (const Filename &fn) const |
Bool | WriteProfileToMemory (void *&mem, Int64 &memsize) const |
Monitor Color Profile | |
Bool | IsMonitorProfileMode () const |
Bool | SetMonitorProfileMode (Bool on) |
Miscellaneous | |
Bool | CheckColorMode (COLORMODE colormode) const |
Bool | CreateDefaultWindow (GeDialog *dlg) |
String | GetInfo (COLORPROFILEINFO info) const |
Bool | HasProfile () const |
|
private |
|
private |
|
private |
|
static |
|
static |
ColorProfile& operator= | ( | const ColorProfile & | src | ) |
Assigns src to the color profile.
[in] | src | The source color profile. |
Bool operator== | ( | const ColorProfile & | src | ) | const |
Checks if *this
and src color profiles are identical.
[in] | src | The source color profile to compare with. |
Bool operator!= | ( | const ColorProfile & | src | ) | const |
Checks if *this
and src color profiles are not identical.
[in] | src | The source color profile to compare with. |
Loads the color profile data from the given file.
[in] | fn | The filename of the color profile file. |
Loads the color profile from the memory location mem.
[in] | mem | The pointer to the memory buffer containing the color profile. The caller owns the pointed memory buffer. |
[in] | memsize | The size of the memory buffer mem. |
Writes the color profile data to the given file.
[in] | fn | The filename of the color profile file. |
Writes the color profile to memory location mem.
[out] | mem | Assigned a pointer to the color profile. The caller owns the pointed memory buffer. |
[out] | memsize | Assigned the size of the written memory buffer mem. |
Bool IsMonitorProfileMode | ( | ) | const |
Checks if the color profile is linked to the monitor color profile.
Links the color profile to the monitor color profile.
[in] | on | true to link the color profile to the monitor profile, otherwise false. |
Checks if the color profile is compatible with the passed color mode.
[in] | colormode | The color mode to check: COLORMODE |
Retrieves the monitor color profile of the passed dialog window.
[in] | dlg | The dialog window to obtain the monitor color profile for. The caller owns the pointed dialog. |
String GetInfo | ( | COLORPROFILEINFO | info | ) | const |
Retrieves information about the color profile.
[in] | info | The type of information: COLORPROFILEINFO |
Bool HasProfile | ( | ) | const |
Checks if the color profile exists.
|
static |
Retrieves Cinema 4D's default sRGB color profile.
|
static |
Retrieves Cinema 4D's default linear color profile.
|
static |
Retrieves Cinema 4D's default sRGB grayscale color profile.
|
static |
Retrieves Cinema 4D's default linear grayscale color profile.
const maxon::ColorProfile& GetInternalProfile | ( | ) | const |
Retrieves the internal color profile. Private.
void SetInternalProfile | ( | const maxon::ColorProfile & | profile | ) |
Sets the internal color profile. Private.
[in] | profile | The new profile. |