public class ColorUtil extends Object
Copyright (c) 2020 xsx All Rights Reserved. x-easypdf-pdfbox is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. See the Mulan PSL v2 for more details.
Constructor and Description |
---|
ColorUtil() |
Modifier and Type | Method and Description |
---|---|
static Color |
toColor(org.apache.pdfbox.pdmodel.graphics.color.PDColor color)
转为Color对象
|
static Color |
toColor(String hexString)
转为Color对象
|
static String |
toHexString(Color color)
转为十六进制字符串
|
static org.apache.pdfbox.pdmodel.graphics.color.PDColor |
toPDColor(Color color)
转为PDColor对象
|
static String |
toPDColorString(Color color)
转为PDColor对象
|
public static org.apache.pdfbox.pdmodel.graphics.color.PDColor toPDColor(Color color)
color
- 颜色对象public static String toPDColorString(Color color)
color
- 颜色对象public static Color toColor(org.apache.pdfbox.pdmodel.graphics.color.PDColor color)
color
- PDColor对象public static Color toColor(String hexString)
hexString
- 十六进制字符串Copyright © 2024. All rights reserved.