| OLD | NEW |
| 1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #ifndef CORE_FPDFAPI_FPDF_PAGE_CPDF_COLORSTATE_H_ | 7 #ifndef CORE_FPDFAPI_FPDF_PAGE_CPDF_COLORSTATE_H_ |
| 8 #define CORE_FPDFAPI_FPDF_PAGE_CPDF_COLORSTATE_H_ | 8 #define CORE_FPDFAPI_FPDF_PAGE_CPDF_COLORSTATE_H_ |
| 9 | 9 |
| 10 #include "core/fpdfapi/fpdf_page/cpdf_colorstatedata.h" | 10 #include "core/fpdfapi/fpdf_page/cpdf_colorstatedata.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 return m_pObject ? &m_pObject->m_StrokeColor : nullptr; | 25 return m_pObject ? &m_pObject->m_StrokeColor : nullptr; |
| 26 } | 26 } |
| 27 | 27 |
| 28 void SetFillColor(CPDF_ColorSpace* pCS, FX_FLOAT* pValue, int nValues); | 28 void SetFillColor(CPDF_ColorSpace* pCS, FX_FLOAT* pValue, int nValues); |
| 29 void SetStrokeColor(CPDF_ColorSpace* pCS, FX_FLOAT* pValue, int nValues); | 29 void SetStrokeColor(CPDF_ColorSpace* pCS, FX_FLOAT* pValue, int nValues); |
| 30 void SetFillPattern(CPDF_Pattern* pattern, FX_FLOAT* pValue, int nValues); | 30 void SetFillPattern(CPDF_Pattern* pattern, FX_FLOAT* pValue, int nValues); |
| 31 void SetStrokePattern(CPDF_Pattern* pattern, FX_FLOAT* pValue, int nValues); | 31 void SetStrokePattern(CPDF_Pattern* pattern, FX_FLOAT* pValue, int nValues); |
| 32 | 32 |
| 33 private: | 33 private: |
| 34 void SetColor(CPDF_Color& color, | 34 void SetColor(CPDF_Color& color, |
| 35 FX_DWORD& rgb, | 35 uint32_t& rgb, |
| 36 CPDF_ColorSpace* pCS, | 36 CPDF_ColorSpace* pCS, |
| 37 FX_FLOAT* pValue, | 37 FX_FLOAT* pValue, |
| 38 int nValues); | 38 int nValues); |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 #endif // CORE_FPDFAPI_FPDF_PAGE_CPDF_COLORSTATE_H_ | 41 #endif // CORE_FPDFAPI_FPDF_PAGE_CPDF_COLORSTATE_H_ |
| OLD | NEW |