After reading the help file some more, I realised that it doesn't go through the whole bitmap, but replaces the patch of color that is around the specified x,y but that still doesn't explain with this is not working