Hi guys, I want to create a `Bitmap` of `.tiff` ex...
# android
k
Hi guys, I want to create a
Bitmap
of
.tiff
extension. I saw in stack overflow 1 and stack overflow 2 the code is in java. But I was unable to find this class in kotlin. Is there any better way doing in kotlin to load in
.tiff
? Thanks
i
wdym by unable to find in kotlin, all java classes are available in Kotlin
☝️ 1
k
If you check stack overflow 2 link, there is code which is using
SeekableStream
in java. I tried in Kotlin language and unable to find it.
i
@KotlinLeaner because it’s not a part of openjdk, so you need add a dependency to that specific com.sun.media artifact https://mvnrepository.com/artifact/com.sun.media/jai-codec/1.1.3
implementation(“com.sun.mediajai codec1.1.3”)
k
ohh okk. Thank you so much.