Methods Signatures
|
Open a profile from a file. |
|
Write a profile to a file |
|
Returns the profile info. |
|
Check if a profile is set. |
|
Check if the current profile is the monitor profile. |
|
Link this color profile to the monitor color profile. |
|
Check the color mode of the color profile. |
Static Methods Signatures
Returns the default SRGB final. |
|
Returns the default linear final. |
|
Returns the default SGray linear color. |
|
Returns the default gray linear color. |
Methods Documentation
-
ColorProfile.
__init__
(self)¶ - Return type
- Returns
The new render data
-
ColorProfile.
OpenProfileFromFile
(self, fn)¶ Open a profile from a file.
- Parameters
fn (Union[str, c4d.storage.MemoryFileStruct]) – The file.
-
ColorProfile.
WriteProfileToFile
(self, fn)¶ Write a profile to a file
- Parameters
fn (Union[str, c4d.storage.MemoryFileStruct]) – The file.
- Return type
bool
- Returns
Is True on success, otherwise False.
-
ColorProfile.
GetInfo
(self)¶ Returns the profile info.
- Return type
str
- Returns
The profile info
-
ColorProfile.
HasProfile
(self)¶ Check if a profile is set.
- Return type
bool
- Returns
True on success, otherwise False.
-
ColorProfile.
IsMonitorProfileMode
(self)¶ Check if the current profile is the monitor profile.
- Return type
bool
- Returns
True if the monitor profile is set, otherwise False.
-
ColorProfile.
SetMonitorProfileMode
(self, on)¶ Link this color profile to the monitor color profile.
- Parameters
on (bool) – Set True to link the color profile to the monitor profile.
- Return type
bool
- Returns
True if set, otherwise False.
-
ColorProfile.
CheckColorMode
(self, colormode)¶ Check the color mode of the color profile.
- Parameters
colormode (int) –
The mode:
COLORMODE_ILLEGAL
Illegal 8-bit mode.
COLORMODE_ALPHA
Only 8-bit alpha channel.
COLORMODE_GRAY
8-bit grayscale channel.
COLORMODE_AGRAY
8-bit grayscale channel with 8-bit alpha.
COLORMODE_RGB
8-bit RGB channels.
COLORMODE_ARGB
8-bit RGB channels with 8-bit alpha.
COLORMODE_CMYK
8-bit CMYK channel.
COLORMODE_ACMYK
8-bit CMYK channel with 8-bit alpha.
COLORMODE_MASK
8-bit grayscale map as mask.
COLORMODE_AMASK
8-bit grayscale map as mask with 8-bit alpha.
COLORMODE_ILLEGALw
Illegal 16-bit mode.
COLORMODE_GRAYw
16-bit grayscale channel.
COLORMODE_AGRAYw
16-bit grayscale channel with 16-bit alpha.
COLORMODE_RGBw
16-bit RGB channels.
COLORMODE_ARGBw
16-bit RGB channels with 16-bit alpha.
COLORMODE_MASKw
16-bit grayscale map as mask with 16-bit alpha.
COLORMODE_ILLEGALf
Illegal 32-bit mode.
COLORMODE_GRAYf
32-bit floating point grayscale channel.
COLORMODE_AGRAYf
32-bit floating point grayscale channel with floating point alpha.
COLORMODE_RGBf
32-bit floating point RGB channels.
COLORMODE_ARGBf
32-bit floating point RGB channels with floating point alpha.
COLORMODE_MASKf
32-bit floating point grayscale map as mask.
- Return type
bool
- Returns
True if set, otherwise False.
Static Methods Documentation
-
static
c4d.bitmaps.ColorProfile.
GetDefaultSRGB
()¶ Returns the default SRGB final.
- Return type
- Returns
The profile.
-
static
c4d.bitmaps.ColorProfile.
GetDefaultLinearRGB
()¶ Returns the default linear final.
- Return type
- Returns
The profile.
-
static
c4d.bitmaps.ColorProfile.
GetDefaultSGray
()¶ Returns the default SGray linear color.
- Return type
- Returns
The profile.
-
static
c4d.bitmaps.ColorProfile.
GetDefaultLinearGray
()¶ Returns the default gray linear color.
- Return type
- Returns
The profile.