------------------------------------------------------------------------------
| 1710 | |
| 1711 | //------------------------------------------------------------------------------ |
| 1712 | void vtkPDFContextDevice2D::ApplyFillAlpha(unsigned char alpha) |
| 1713 | { |
| 1714 | auto gstateIter = this->Impl->AlphaGStateMap.find(alpha); |
| 1715 | if (gstateIter == this->Impl->AlphaGStateMap.end()) |
| 1716 | { |
| 1717 | HPDF_ExtGState gstate = HPDF_CreateExtGState(this->Impl->Document); |
| 1718 | HPDF_ExtGState_SetAlphaFill(gstate, alpha / 255.f); |
| 1719 | auto tmp = this->Impl->AlphaGStateMap.insert(std::make_pair(alpha, gstate)); |
| 1720 | gstateIter = tmp.first; |
| 1721 | } |
| 1722 | HPDF_ExtGState alphaState = gstateIter->second; |
| 1723 | HPDF_Page_SetExtGState(this->Impl->Page, alphaState); |
| 1724 | } |
| 1725 | |
| 1726 | //------------------------------------------------------------------------------ |
| 1727 | void vtkPDFContextDevice2D::Fill(bool stroke) |
no test coverage detected