CreateColor

XpsDocument.CreateColor method (1 of 7)

Creates a new color.

public XpsColor CreateColor(Color color)
Parameter Type Description
color Color A native color instance for RGB color.

Return Value

New color.

See Also


XpsDocument.CreateColor method (2 of 7)

Creates a new color in sRGB color space.

public XpsColor CreateColor(int a, int r, int g, int b)
Parameter Type Description
a Int32 The alpha color component.
r Int32 The red color component.
g Int32 The green color component.
b Int32 The blue color component.

Return Value

New color.

See Also


XpsDocument.CreateColor method (3 of 7)

Creates a new color in sRGB color space.

public XpsColor CreateColor(int r, int g, int b)
Parameter Type Description
r Int32 The red color component.
g Int32 The green color component.
b Int32 The blue color component.

Return Value

New color.

See Also


XpsDocument.CreateColor method (4 of 7)

Creates a new color in scRGB color space.

public XpsColor CreateColor(float a, float r, float g, float b)
Parameter Type Description
a Single The alpha color component.
r Single The red color component.
g Single The green color component.
b Single The blue color component.

Return Value

New color.

See Also


XpsDocument.CreateColor method (5 of 7)

Creates a new color in scRGB color space.

public XpsColor CreateColor(float r, float g, float b)
Parameter Type Description
r Single The red color component.
g Single The green color component.
b Single The blue color component.

Return Value

New color.

See Also


XpsDocument.CreateColor method (6 of 7)

Creates a new color in ICC based color space.

public XpsColor CreateColor(string path, params float[] components)
Parameter Type Description
path String The path to the ICC profile.
components Single[] Color components.

Return Value

New color.

See Also


XpsDocument.CreateColor method (7 of 7)

Creates a new color in ICC based color space.

public XpsColor CreateColor(XpsIccProfile iccProfile, params float[] components)
Parameter Type Description
iccProfile XpsIccProfile The ICC profile resource.
components Single[] Color components.

Return Value

New color.

See Also