The missing encoder to encode android.graphics.Bitmap to Windows Bitmap (*.bmp)
- Add the Maven Central repository (if not exist) to your build file:
repositories {
...
mavenCentral()
}
- Add the dependency:
dependencies {
...
implementation 'com.tianscar.android:android-bmp-encoder:1.0.2'
}
BmpEncoder.compress(Bitmap bitmap, Outputstream stream);
MIT (c) Karstian Lee