1. A method of processing an image in an electronic device, the method comprising: predicting the number of surfaces which can be partitioned in image data; determining an inverse distortion rendering method corresponding to the predicted number of surfaces as a method for inverse distortion rendering of the image data; rendering the image data to a distorted image based on the determined inverse distortion rendering method; and displaying the distorted image.