Files
baji-vc/tests/camera/Graphics.kt
T

13 lines
513 B
Kotlin

package android.graphics
object ImageFormat {const val YUV_420_888=35}
class Matrix {fun postRotate(f: Float) {}}
class Rect(val left: Int,val top: Int,val right: Int,val bottom: Int) {fun width()=right-left;fun height()=bottom-top}
class Bitmap(val width: Int,val height: Int) {
enum class Config {ARGB_8888}
fun recycle() {}
companion object {
fun createBitmap(p: IntArray,w: Int,h: Int,c: Config)=Bitmap(w,h)
fun createBitmap(b: Bitmap,x: Int,y: Int,w: Int,h: Int,m: Matrix,f: Boolean)=Bitmap(w,h)
}
}