7#ifndef CORE_FPDFAPI_PAGE_CPDF_PATTERNCS_H_
8#define CORE_FPDFAPI_PAGE_CPDF_PATTERNCS_H_
12#include "core/fpdfapi/page/cpdf_basedcs.h"
13#include "core/fxcrt/retain_ptr.h"
27 bool GetRGB(pdfium::span<
const float> pBuf,
30 float* B)
const override;
33 const CPDF_Array* pArray,
34 std::set<
const CPDF_Object*>* pVisited)
override;
static RetainPtr< CPDF_ColorSpace > GetStockCS(Family family)
void SetValueForPattern(RetainPtr< CPDF_Pattern > pattern, pdfium::span< float > values)
bool IsPatternInternal() const
CPDF_Color(const CPDF_Color &that)
CPDF_Color & operator=(const CPDF_Color &that)
void SetValueForNonPattern(std::vector< float > values)
RetainPtr< CPDF_Pattern > GetPattern() const
void SetColorSpace(RetainPtr< CPDF_ColorSpace > colorspace)
bool GetRGB(int *R, int *G, int *B) const
uint32_t CountComponents() const
bool IsColorSpaceRGB() const
uint32_t v_Load(CPDF_Document *pDoc, const CPDF_Array *pArray, std::set< const CPDF_Object * > *pVisited) override
~CPDF_PatternCS() override
bool GetRGB(pdfium::span< const float > pBuf, float *R, float *G, float *B) const override
void InitializeStockPattern()
bool GetPatternRGB(const PatternValue &value, float *R, float *G, float *B) const
const CPDF_PatternCS * AsPatternCS() const override
#define CONSTRUCT_VIA_MAKE_RETAIN