Slide 24
Slide 24 text
override fun transform(
pool: BitmapPool,
toTransform: Bitmap,
outWidth: Int,
outHeight: Int
): Bitmap {
val width = toTransform.width
val height = toTransform.height
aspectRatio = width / height
return when {
aspectRatio >= 2 -> // 2:5 ΑΓԣ
cropWidth(pool, toTransform, imageWidth, imageHeight)
else -> // ͦΕҎ֎ͷͱ͖ɺͦͷ··BitmapΛฦ٫
toTransform
}
}