painterResource
A reflective way of loading a drawable resource to a painter.
Return
A painter for the resource.
Parameters
name
The name of the resource.
packageName
The package name of the resource.
Throws
If the resource is not found.