How to use painter component

Please tell me, how to use painter component