MCPcopy Create free account
hub / github.com/Tencent/libpag / ColorToQString

Function ColorToQString

viewer/src/utils/StringUtils.cpp:107–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107QString ColorToQString(const Color& color) {
108 char hexColor[8] = {0};
109 snprintf(hexColor, 8, "#%02X%02X%02X", color.red, color.green, color.blue);
110 return {hexColor};
111}
112
113} // namespace pag::Utils

Callers 2

fillColorMethod · 0.50
strokeColorMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected