fun imageFromResource( context: Context, resourceId: Int, size: Size? = null ): Image
Context - Android context resourceId - Android resource size - target image size (ignored for SVG and Lottie).
context
Context
resourceId
Int
size
Size?
Image