MCPcopy Create free account
hub / github.com/Kitware/VTK / ApplyTextPropertyState

Method ApplyTextPropertyState

IO/ExportPDF/vtkPDFContextDevice2D.cxx:1686–1694  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1684
1685//------------------------------------------------------------------------------
1686void vtkPDFContextDevice2D::ApplyTextPropertyState()
1687{
1688 unsigned char rgba[4] = { static_cast<unsigned char>(this->TextProp->GetColor()[0] * 255.),
1689 static_cast<unsigned char>(this->TextProp->GetColor()[1] * 255.),
1690 static_cast<unsigned char>(this->TextProp->GetColor()[2] * 255.),
1691 static_cast<unsigned char>(this->TextProp->GetOpacity() * 255.) };
1692
1693 this->ApplyFillColor(rgba, 4);
1694}
1695
1696//------------------------------------------------------------------------------
1697void vtkPDFContextDevice2D::ApplyFillColor(unsigned char* color, int numComps)

Callers 1

DrawStringMethod · 0.95

Calls 3

ApplyFillColorMethod · 0.95
GetColorMethod · 0.45
GetOpacityMethod · 0.45

Tested by

no test coverage detected