diff options
Diffstat (limited to 'core/fpdfapi/page/cpdf_devicecs.h')
-rw-r--r-- | core/fpdfapi/page/cpdf_devicecs.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/core/fpdfapi/page/cpdf_devicecs.h b/core/fpdfapi/page/cpdf_devicecs.h new file mode 100644 index 0000000000..177f240fbc --- /dev/null +++ b/core/fpdfapi/page/cpdf_devicecs.h @@ -0,0 +1,38 @@ +// Copyright 2017 PDFium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com + +#ifndef CORE_FPDFAPI_PAGE_CPDF_DEVICECS_H_ +#define CORE_FPDFAPI_PAGE_CPDF_DEVICECS_H_ + +#include "core/fpdfapi/page/cpdf_colorspace.h" + +class CPDF_DeviceCS : public CPDF_ColorSpace { + public: + explicit CPDF_DeviceCS(int family); + ~CPDF_DeviceCS() override; + + // CPDF_ColorSpace: + bool GetRGB(float* pBuf, float* R, float* G, float* B) const override; + bool SetRGB(float* pBuf, float R, float G, float B) const override; + bool v_GetCMYK(float* pBuf, + float* c, + float* m, + float* y, + float* k) const override; + bool v_SetCMYK(float* pBuf, + float c, + float m, + float y, + float k) const override; + void TranslateImageLine(uint8_t* pDestBuf, + const uint8_t* pSrcBuf, + int pixels, + int image_width, + int image_height, + bool bTransMask) const override; +}; + +#endif // CORE_FPDFAPI_PAGE_CPDF_DEVICECS_H_ |