http://www.ohfransson.com/oh_fransson/files/ninepatch_door_stop_tutorial.pdf