Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(181)

Side by Side Diff: core/fpdfapi/fpdf_page/include/cpdf_color.h

Issue 2379033002: Move core/fpdfapi/fpdf_page/include to core/fpdfapi/fpdf_page (Closed)
Patch Set: Header sort Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 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_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_COLOR_H_
8 #define CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_COLOR_H_
9
10 #include "core/fpdfapi/fpdf_page/include/cpdf_colorspace.h"
11 #include "core/fxcrt/include/fx_system.h"
12
13 class CPDF_Pattern;
14
15 class CPDF_Color {
16 public:
17 CPDF_Color();
18 ~CPDF_Color();
19
20 bool IsNull() const { return !m_pBuffer; }
21 bool IsPattern() const;
22
23 void Copy(const CPDF_Color* pSrc);
24
25 void SetColorSpace(CPDF_ColorSpace* pCS);
26 void SetValue(FX_FLOAT* comp);
27 void SetValue(CPDF_Pattern* pPattern, FX_FLOAT* comp, int ncomps);
28
29 FX_BOOL GetRGB(int& R, int& G, int& B) const;
30 CPDF_Pattern* GetPattern() const;
31 const CPDF_ColorSpace* GetColorSpace() const { return m_pCS; }
32
33 protected:
34 void ReleaseBuffer();
35 void ReleaseColorSpace();
36
37 CPDF_ColorSpace* m_pCS;
38 FX_FLOAT* m_pBuffer;
39 };
40
41 #endif // CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_COLOR_H_
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_page/include/cpdf_clippath.h ('k') | core/fpdfapi/fpdf_page/include/cpdf_colorspace.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698