| 54 | } |
| 55 | |
| 56 | float 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 |
no test coverage detected