87 const CPDF_PatternCS* pPatternCS = m_pCS->AsPatternCS();
88 result = pPatternCS->GetPatternRGB(*m_pValue, &r, &g, &b);
91 if (!m_Buffer.empty())
92 result = m_pCS->GetRGB(m_Buffer, &r, &g, &b);
97 *R =
static_cast<int32_t>(r * 255 + 0.5f);
98 *G =
static_cast<int32_t>(g * 255 + 0.5f);
99 *B =
static_cast<int32_t>(b * 255 + 0.5f);