Bitmap Widget
open class BitmapWidget @JvmOverloads constructor(bitmap: Bitmap, position: WidgetPosition, marginX: Float, marginY: Float) : Widget
Content copied to clipboard
Widget displaying bitmap within specified position and margins.
Parameters
bitmap
bitmap used to draw widget
position
position of widget
margin X
horizontal margin in pixels
margin Y
vertical margin in pixels
Constructors
BitmapWidget
Link copied to clipboard
fun BitmapWidget(bitmap: Bitmap, position: WidgetPosition = WidgetPosition(
vertical = WidgetPosition.Vertical.TOP,
horizontal = WidgetPosition.Horizontal.LEFT,
), marginX: Float = 0f, marginY: Float = 0f)
Content copied to clipboard
Functions
set Rotation
Link copied to clipboard
Set absolute rotation of widget in angles.
set Translation
Link copied to clipboard
open override fun setTranslation(translationX: Float, translationY: Float)
Content copied to clipboard
Set absolute translation of widget in pixels.
update Bitmap
Link copied to clipboard
Update bitmap widget uses.