Dividing bitmap image into two

Is there any way to divide the bitmap into two part dynamically,when the user click on two points???