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

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

在 scRGB 颜色空间中创建一种新颜色。

System::SharedPtr<XpsModel::XpsColor> Aspose::Page::XPS::XpsDocument::CreateColor(float a, float r, float g, float b)
ParameterType描述
一个单精度浮点数Alpha 颜色分量。
r单精度浮点数红色分量。
g单精度浮点数绿色分量。
b单精度浮点数蓝色分量。

ReturnValue

新颜色。

另见

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

在 scRGB 颜色空间中创建一种新颜色。

System::SharedPtr<XpsModel::XpsColor> Aspose::Page::XPS::XpsDocument::CreateColor(float r, float g, float b)
ParameterType描述
r单精度浮点数红色分量。
g单精度浮点数绿色分量。
b单精度浮点数蓝色分量。

ReturnValue

新颜色。

另见

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

在 sRGB 颜色空间中创建一种新颜色。

System::SharedPtr<XpsModel::XpsColor> Aspose::Page::XPS::XpsDocument::CreateColor(int32_t a, int32_t r, int32_t g, int32_t b)
ParameterType描述
一个int32_tAlpha 颜色分量。
rint32_t红色分量。
gint32_t绿色分量。
bint32_t蓝色分量。

ReturnValue

新颜色。

另见

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

在 sRGB 颜色空间中创建一种新颜色。

System::SharedPtr<XpsModel::XpsColor> Aspose::Page::XPS::XpsDocument::CreateColor(int32_t r, int32_t g, int32_t b)
ParameterType描述
rint32_t红色分量。
gint32_t绿色分量。
bint32_t蓝色分量。

ReturnValue

新颜色。

另见

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

创建一种新颜色。

System::SharedPtr<XpsModel::XpsColor> Aspose::Page::XPS::XpsDocument::CreateColor(System::Drawing::Color color)
ParameterType描述
colorSystem::Drawing::ColorRGB 颜色的本机颜色实例。

ReturnValue

新颜色。

另见

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

在基于 ICC 的颜色空间中创建一种新颜色。

System::SharedPtr<XpsModel::XpsColor> Aspose::Page::XPS::XpsDocument::CreateColor(System::SharedPtr<XpsModel::XpsIccProfile> iccProfile, const System::ArrayPtr<float> &components)
ParameterType描述
iccProfileSystem::SharedPtr<XpsModel::XpsIccProfile>ICC 配置文件资源。
组件const System::ArrayPtr<float>&颜色分量。

ReturnValue

新颜色。

另见

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

在基于 ICC 的颜色空间中创建一种新颜色。

System::SharedPtr<XpsModel::XpsColor> Aspose::Page::XPS::XpsDocument::CreateColor(System::String path, const System::ArrayPtr<float> &components)
ParameterType描述
路径System::StringICC 配置文件的路径。
组件const System::ArrayPtr<float>&颜色分量。

ReturnValue

新颜色。

另见