CreateColorCmyk Method (name, cyan, magenta, yellow, black, isSpot)

Pageflex Document Action API

Pageflex Document Action API CreateColorCmyk Method (name, cyan, magenta, yellow, black, isSpot)
Namespaces > Pageflex.Scripting > Document > CreateColorCmyk(String, Double, Double, Double, Double, Boolean)
Creates a new CMYK Color with the specified name and values.
Syntax
C# Visual Basic Managed C++
public Color CreateColorCmyk (
	string name,
	double cyan,
	double magenta,
	double yellow,
	double black,
	bool isSpot
)
Public Function CreateColorCmyk ( _
	name As String, _
	cyan As Double, _
	magenta As Double, _
	yellow As Double, _
	black As Double, _
	isSpot As Boolean _
) As Color
public:
Color^ CreateColorCmyk (
	String^ name, 
	double cyan, 
	double magenta, 
	double yellow, 
	double black, 
	bool isSpot
)
Parameters
name (String)
Name of color to create.
cyan (Double)
A Double between 0 and 100, representing the cyan component of the color to create.
magenta (Double)
A Double between 0 and 100, representing the magenta component of the color to create.
yellow (Double)
A Double between 0 and 100, representing the yellow component of the color to create.
black (Double)
A Double between 0 and 100, representing the black component of the color to create.
isSpot (Boolean)
falseFalsefalse to create a process color, or trueTruetrue to create a spot color.
Return Value
The newly created Color.
Exceptions
Exception Condition
ColorAlreadyExistsException A color with the specified name already exists in the current document.
ArgumentNullException The value supplied for name was nullNothingnullptr.
StaleScriptingObjectException This object's associated internal object no longer exists.

Assembly: PFScript Version: 8.0.7.1407 (Module: PFScript)