what's the problem?
you just have to move from one corner (0,0) of the image to the other (dim_x,dim_y) and with every piksel check if its RGB values say that it's blue (assuming that it's 8-bit color depth it's gonna be something around RED 0, GREEN 0 BLUE 255)
if so, you've found blue point - remember its coordinates and go along with your checking