-
首页
-
C4D R23.110 C++ SDK
ColorProfileInterface Class Reference
#include <gfx_image_colorprofile.h>
详细描述
This class allows to deal with color profiles. Color profiles are used to map colors from a given color space (e.g. image color space) into a destination color space (e.g. calibrated monitor).
成员函数文档编制
◆
MAXON_INTERFACE_NONVIRTUAL()
◆
IsEqual()
◆
OpenProfileFromFile()
Create a color profile from a
Url
.
-
参数
-
[in]
|
fn
|
Url
of the preset. This could be an icc file from the hard drive.
|
-
返回
-
A valid color profile if the operation was successful.
◆
OpenProfileFromMemory()
Create a color profile from a memory block. This can be used to read the color profiles within images.
-
参数
-
[in]
|
mem
|
Memory block representing the icc color profile.
|
-
返回
-
A valid color profile if the operation was successful.
◆
WriteProfileToMemory()
Write the current profile to memory.
-
参数
-
[out]
|
mem
|
Array
which receives the memory.
|
-
返回
-
True if the function operates successful.
◆
WriteProfileToFile()
Write the current profile to a file stream.
-
参数
-
[in]
|
fn
|
Name of the file/stream.
|
-
返回
-
True if the function operates successful.
◆
GetInfo()
Returns additional informations to the color profile.
-
参数
-
[in]
|
info
|
Requested information. See COLORPROFILEINFO.
|
-
返回
-
String
with the information stored in the color profile.
◆
GetCrc()
Returns the crc representing this color profile.
◆
HasProfile()
Returns whether this object contains a valid color profile.
◆
CheckCompatiblePixelFormat()
MAXON_METHOD
Bool
CheckCompatiblePixelFormat
|
(
|
const PixelFormat &
|
pixelFormat
|
)
|
const
|
Check the color profile if it's compatible with the given pixel format. 8e.g. if gray scale matches)
-
返回
-
True if the pixel format is compatible with the color profile.
◆
IsMonitorProfileMode()
Returns whether the color profile is linked to a color profile of a monitor.
◆
GetHashCode()
Returns the hash code of the object.
◆
GetColorSpace()
Returns the color space for which the profile is valid.
◆
ToString()
Returns a readable string of the content.
-
参数
-
[in]
|
formatStatement
|
Nullptr or additional formatting instruction. Currently no additional formatting instructions are supported.
|
-
返回
-
The converted result. By default, this is the name of the class, followed by @, followed by the hexadecimal memory address of this object.