Aspose::Page::XPS::XpsDocument::CreateColor method

XpsDocument::CreateColor(float, float, float, float) method

Creates a new color in scRGB color space.

System::SharedPtr<XpsModel::XpsColor> Aspose::Page::XPS::XpsDocument::CreateColor(float a, float r, float g, float b)
ParameterTypeDescription
afloatThe alpha color component.
rfloatThe red color component.
gfloatThe green color component.
bfloatThe blue color component.

ReturnValue

New color.

See Also

XpsDocument::CreateColor(float, float, float) method

Creates a new color in scRGB color space.

System::SharedPtr<XpsModel::XpsColor> Aspose::Page::XPS::XpsDocument::CreateColor(float r, float g, float b)
ParameterTypeDescription
rfloatThe red color component.
gfloatThe green color component.
bfloatThe blue color component.

ReturnValue

New color.

See Also

XpsDocument::CreateColor(int32_t, int32_t, int32_t, int32_t) method

Creates a new color in sRGB color space.

System::SharedPtr<XpsModel::XpsColor> Aspose::Page::XPS::XpsDocument::CreateColor(int32_t a, int32_t r, int32_t g, int32_t b)
ParameterTypeDescription
aint32_tThe alpha color component.
rint32_tThe red color component.
gint32_tThe green color component.
bint32_tThe blue color component.

ReturnValue

New color.

See Also

XpsDocument::CreateColor(int32_t, int32_t, int32_t) method

Creates a new color in sRGB color space.

System::SharedPtr<XpsModel::XpsColor> Aspose::Page::XPS::XpsDocument::CreateColor(int32_t r, int32_t g, int32_t b)
ParameterTypeDescription
rint32_tThe red color component.
gint32_tThe green color component.
bint32_tThe blue color component.

ReturnValue

New color.

See Also

XpsDocument::CreateColor(System::Drawing::Color) method

Creates a new color.

System::SharedPtr<XpsModel::XpsColor> Aspose::Page::XPS::XpsDocument::CreateColor(System::Drawing::Color color)
ParameterTypeDescription
colorSystem::Drawing::ColorA native color instance for RGB color.

ReturnValue

New color.

See Also

XpsDocument::CreateColor(System::SharedPtr<XpsModel::XpsIccProfile>, const System::ArrayPtr<float>&) method

Creates a new color in ICC based color space.

System::SharedPtr<XpsModel::XpsColor> Aspose::Page::XPS::XpsDocument::CreateColor(System::SharedPtr<XpsModel::XpsIccProfile> iccProfile, const System::ArrayPtr<float> &components)
ParameterTypeDescription
iccProfileSystem::SharedPtr<XpsModel::XpsIccProfile>The ICC profile resource.
componentsconst System::ArrayPtr<float>&Color components.

ReturnValue

New color.

See Also

XpsDocument::CreateColor(System::String, const System::ArrayPtr<float>&) method

Creates a new color in ICC based color space.

System::SharedPtr<XpsModel::XpsColor> Aspose::Page::XPS::XpsDocument::CreateColor(System::String path, const System::ArrayPtr<float> &components)
ParameterTypeDescription
pathSystem::StringThe path to the ICC profile.
componentsconst System::ArrayPtr<float>&Color components.

ReturnValue

New color.

See Also