I need to implement the paint selection feature but before starting from scratch I wanted to take some help. If someone could direct me to some code already written for it would be helpful or someone who has experience in this can give me some suggestion in implementing it.