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

Function MakeColorInt

src/platform/android/JNIHelper.cpp:52–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52jint MakeColorInt(JNIEnv*, uint32_t red, uint32_t green, uint32_t blue) {
53 uint32_t color = (255 << 24) | (red << 16) | (green << 8) | (blue << 0);
54 return static_cast<int>(color);
55}
56
57jobject MakePAGFontObject(JNIEnv* env, const std::string& familyName,
58 const std::string& familyStyle) {

Calls

no outgoing calls

Tested by

no test coverage detected