Platforms to show: All Mac Windows Linux Cross-Platform

Back to LCMS2NamedColorListMBS class.

LCMS2NamedColorListMBS.Append(name as string) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method LCMS2 MBS Images Plugin 12.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Adds a new spot color to the list.

If the number of elements in the list exceeds the initial storage, the list is realloc'ed to accommodate things.

Name: The spot color name without any prefix or suffix specified in Constructor.
PCS: Optionally, Encoded PCS coordinates as three integers.
Colorant: Optionally, Encoded values for device colorant. (up to 16 entries)

Returns true on success and false on failure.

See also:

LCMS2NamedColorListMBS.Append(name as string, PCS() as Integer) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method LCMS2 MBS Images Plugin 12.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Adds a new spot color to the list.

If the number of elements in the list exceeds the initial storage, the list is realloc'ed to accommodate things.

Name: The spot color name without any prefix or suffix specified in Constructor.
PCS: Optionally, Encoded PCS coordinates as three integers.
Colorant: Optionally, Encoded values for device colorant. (up to 16 entries)

Returns true on success and false on failure.

See also:

LCMS2NamedColorListMBS.Append(name as string, PCS() as Integer, Colorant() as Integer) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method LCMS2 MBS Images Plugin 11.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Adds a new spot color to the list.

If the number of elements in the list exceeds the initial storage, the list is realloc'ed to accommodate things.

Name: The spot color name without any prefix or suffix specified in Constructor.
PCS: Optionally, Encoded PCS coordinates as three integers.
Colorant: Optionally, Encoded values for device colorant. (up to 16 entries)

Returns true on success and false on failure.

See also:

LCMS2NamedColorListMBS.Colorant(nColor as UInt32) as Integer()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method LCMS2 MBS Images Plugin 11.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns encoded colorants of nth color.

Array has 16 entries, but not all may be in use.

Some examples using this method:

LCMS2NamedColorListMBS.ColorIndex(name as string) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method LCMS2 MBS Images Plugin 11.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Performs a look-up in the dictionary and returns an index on the given color name.

Returns index on name, or -1 if the spot color is not found.

LCMS2NamedColorListMBS.Constructor(context as LCMS2ContextMBS, n as UInt32, ColorantCount as UInt32, Prefix as string = "", Suffix as string = "")

Type Topic Plugin Version macOS Windows Linux iOS Targets
method LCMS2 MBS Images Plugin 11.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Creates a new named color list.

Allocates an empty named color dictionary.

Context: The user-defined context cargo.
N: Initial number of spot colors in the list
Colorant count: Number of channels of device space (i.e, 3 for RGB, 4 for CMYK, etc,)
Prefix, Suffix: fixed strings for all spot color names, e.g., "coated", "system", ...

On success handle is not zero.

LCMS2NamedColorListMBS.Name(nColor as UInt32) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method LCMS2 MBS Images Plugin 11.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns name of nth color.

LCMS2NamedColorListMBS.PCS(nColor as UInt32) as Integer()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method LCMS2 MBS Images Plugin 11.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns encoded PCS of nth color.

Array has 3 entries.

LCMS2NamedColorListMBS.Prefix(nColor as UInt32) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method LCMS2 MBS Images Plugin 11.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns prefix of nth color.

LCMS2NamedColorListMBS.Suffix(nColor as UInt32) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method LCMS2 MBS Images Plugin 11.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns suffix of nth color.

The items on this page are in the following plugins: MBS Images Plugin.


The biggest plugin in space...