MCPcopy Create free account
hub / github.com/antvis/F2Native / GetHeight

Method GetHeight

core/android/CanvasImage.cpp:56–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56float CanvasImage::GetHeight() {
57 if (this->image_ != nullptr) {
58 JNIEnv *env_ = GetJniEnvSafe();
59 jclass clzz = env_->FindClass("android/graphics/Bitmap");
60 jmethodID getHeight_ = env_->GetMethodID(clzz, "getHeight", "()I");
61 env_->CallIntMethod((jobject) this->image_, getHeight_);
62 }
63 return 0;
64}
65
66#endif //ANDROID

Callers 2

ResetMethod · 0.45
ResetMethod · 0.45

Calls 1

GetJniEnvSafeFunction · 0.85

Tested by

no test coverage detected