|
Foxit PDF SDK
|
Public 成员函数 | |
| Color () | |
| 构造一个空的颜色对象。 | |
| Color (Color other) | |
| 使用另一个color对象的构造函数。 更多... | |
| Color (ColorSpace color_space) throws com.foxit.sdk.PDFException | |
| 构造函数,使用颜色空间对象 更多... | |
| Color | convertToCMYK (int intent) throws com.foxit.sdk.PDFException |
| 转换为CMYK颜色。 更多... | |
| Color | convertToRGB (int intent) throws com.foxit.sdk.PDFException |
| 转换为RGB颜色。 更多... | |
| synchronized void | delete () |
| 直接清除C++相关资源。 更多... | |
| ColorSpace | getColorSpace () throws com.foxit.sdk.PDFException |
| 获取当前颜色所属的颜色空间。 更多... | |
| FloatArray | getValue () throws com.foxit.sdk.PDFException |
| 获取分量值数组。 更多... | |
| boolean | isEmpty () |
| 检查当前对象是否为空。 更多... | |
| void | setValue (FloatArray component_array) throws com.foxit.sdk.PDFException |
| 设置分量值数组。 更多... | |
此类表示颜色。
| com.foxit.sdk.common.Color.Color | ( | ColorSpace | color_space | ) | throws com.foxit.sdk.PDFException |
构造函数,使用颜色空间对象
| [in] | color_space | 有效的颜色空间对象。 |
| Color com.foxit.sdk.common.Color.convertToCMYK | ( | int | intent | ) | throws com.foxit.sdk.PDFException |
| Color com.foxit.sdk.common.Color.convertToRGB | ( | int | intent | ) | throws com.foxit.sdk.PDFException |
| synchronized void com.foxit.sdk.common.Color.delete | ( | ) |
| ColorSpace com.foxit.sdk.common.Color.getColorSpace | ( | ) | throws com.foxit.sdk.PDFException |
获取当前颜色所属的颜色空间。
| FloatArray com.foxit.sdk.common.Color.getValue | ( | ) | throws com.foxit.sdk.PDFException |
获取分量值数组。
分量的数量取决于当前颜色所属的颜色空间。 用户可以通过函数 Color.getColorSpace 获取颜色空间对象,然后 通过函数 ColorSpace.getComponentCount 获取分量数量。
| boolean com.foxit.sdk.common.Color.isEmpty | ( | ) |
检查当前对象是否为空。
当前对象为空时,表示当前对象无效。
| void com.foxit.sdk.common.Color.setValue | ( | FloatArray | component_array | ) | throws com.foxit.sdk.PDFException |
设置分量值数组。
分量的数量取决于当前颜色所属的颜色空间。 用户可以通过函数 Color.getColorSpace 获取颜色空间对象,然后 通过函数 ColorSpace.getComponentCount 获取分量数量。
| [in] | component_array | 分量值数组。此数组中的分量数量应与当前颜色所属颜色空间的分量数量匹配。 每个分量值的有效范围为 0.0 到 1.0。 |