rawPainterResource
Returns a Painter for a raw resource image. Only rasterized formats such as PNG and JPG are supported. Throws IllegalArgumentException for unsupported asset types.
Parameters
id
the raw resource ID of the image to load as a painter.