Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
class DrawingOverlay(context : Context, attributeSet : AttributeSet) : SurfaceView( context , attributeSet ) , SurfaceHolder.Callback {
var maskBitmap : Bitmap? = null
override fun surfaceCreated(holder: SurfaceHolder) {
TODO("Not yet implemented")
}
override fun surfaceChanged(holder: SurfaceHolder, format: Int, width: Int, height: Int) {
TODO("Not yet implemented")
}
override fun surfaceDestroyed(holder: SurfaceHolder) {
TODO("Not yet implemented")
}
override fun onDraw(canvas: Canvas?) {
// Draw the segmentation here
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment