load an image into visual studio then find PSNR

i want to load two images into visual studio and find PSNR for both of them then make a comparison between the two images. can anyone tell me how to do that please?