PageAPI.CreateColor

CreateColor(Color)

Creates a new color.

public XpsColor CreateColor(Color color)
ParameterTypeDescription
colorColorA native color instance for RGB color.

Return Value

New color.

See Also


CreateColor(int, int, int, int)

Creates a new color in sRGB color space.

public XpsColor CreateColor(int a, int r, int g, int b)
ParameterTypeDescription
aInt32The alpha color component.
rInt32The red color component.
gInt32The green color component.
bInt32The blue color component.

Return Value

New color.

See Also


CreateColor(int, int, int)

Creates a new color in sRGB color space.

public XpsColor CreateColor(int r, int g, int b)
ParameterTypeDescription
rInt32The red color component.
gInt32The green color component.
bInt32The blue color component.

Return Value

New color.

See Also


CreateColor(float, float, float, float)

Creates a new color in scRGB color space.

public XpsColor CreateColor(float a, float r, float g, float b)
ParameterTypeDescription
aSingleThe alpha color component.
rSingleThe red color component.
gSingleThe green color component.
bSingleThe blue color component.

Return Value

New color.

See Also


CreateColor(float, float, float)

Creates a new color in scRGB color space.

public XpsColor CreateColor(float r, float g, float b)
ParameterTypeDescription
rSingleThe red color component.
gSingleThe green color component.
bSingleThe blue color component.

Return Value

New color.

See Also


CreateColor(string, params float[])

Creates a new color in ICC based color space.

public XpsColor CreateColor(string path, params float[] components)
ParameterTypeDescription
pathStringThe path to the ICC profile.
componentsSingle[]Color components.

Return Value

New color.

See Also


CreateColor(XpsIccProfile, params float[])

Creates a new color in ICC based color space.

public XpsColor CreateColor(XpsIccProfile iccProfile, params float[] components)
ParameterTypeDescription
iccProfileXpsIccProfileThe ICC profile resource.
componentsSingle[]Color components.

Return Value

New color.

See Also