1 // Copyright 2019 PDFium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 6 7 #ifndef CORE_FPDFDOC_CPDF_COLOR_UTILS_H_ 8 #define CORE_FPDFDOC_CPDF_COLOR_UTILS_H_ 9 10 #include "core/fxge/cfx_color.h" 11 12 class CPDF_Array; 13 14 namespace fxcrt { 15 class ByteString; 16 } 17 18 namespace fpdfdoc { 19 20 CFX_Color CFXColorFromArray(const CPDF_Array& array); 21 CFX_Color CFXColorFromString(const fxcrt::ByteString& str); 22 23 } // namespace fpdfdoc 24 25 #endif // CORE_FPDFDOC_CPDF_COLOR_UTILS_H_ 26