c4d.bitmaps.ColorProfile

class c4d.bitmaps.ColorProfile

Represents a Color Profile.

See also

Color Profiles

Methods Signatures

ColorProfile.__init__(self)

ColorProfile.OpenProfileFromFile(self, fn)

Open a profile from a file.

ColorProfile.WriteProfileToFile(self, fn)

Write a profile to a file

ColorProfile.GetInfo(self)

Returns the profile info.

ColorProfile.HasProfile(self)

Check if a profile is set.

ColorProfile.IsMonitorProfileMode(self)

Check if the current profile is the monitor profile.

ColorProfile.SetMonitorProfileMode(self, on)

Link this color profile to the monitor color profile.

ColorProfile.CheckColorMode(self, colormode)

Check the color mode of the color profile.

Static Methods Signatures

c4d.bitmaps.ColorProfile.GetDefaultSRGB()

Returns the default SRGB final.

c4d.bitmaps.ColorProfile.GetDefaultLinearRGB()

Returns the default linear final.

c4d.bitmaps.ColorProfile.GetDefaultSGray()

Returns the default SGray linear color.

c4d.bitmaps.ColorProfile.GetDefaultLinearGray()

Returns the default gray linear color.

Methods Documentation

ColorProfile.__init__(self)
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

c4d.bitmaps.ColorProfile

Returns

The profile.

static c4d.bitmaps.ColorProfile.GetDefaultLinearRGB()

Returns the default linear final.

Return type

c4d.bitmaps.ColorProfile

Returns

The profile.

static c4d.bitmaps.ColorProfile.GetDefaultSGray()

Returns the default SGray linear color.

Return type

c4d.bitmaps.ColorProfile

Returns

The profile.

static c4d.bitmaps.ColorProfile.GetDefaultLinearGray()

Returns the default gray linear color.

Return type

c4d.bitmaps.ColorProfile

Returns

The profile.