I have some code for resizing an image. The function returns a bitmap object based on the original image of the new size. I would like to be able to save the bitmap with the same name as the original file that I resized to overwrite it but i get an error when i call bitmap.save presumably because the filename is already in use. How do i get around this?
Do i have to delete the orginal file before i save the new bitmap or is there a way to overwrite the existing file.