1. An image processing apparatus, comprising: an obtaining unit configured to obtain a background image object and a foreground image object to be rendered with an overlap with the background image object, the background image object partially overlapping a pixel which is partially overlapped by the foreground image object; a determination unit configured to determine whether or not there is a possibility that in the pixel, the background image object is rendered instead of the foreground image object, on the basis of a rendering rule for the foreground image object and the background image object, the rendering rule for an image object being determined by a kind of attribute of the image object; and a control unit configured to control a rendering so that the background image object does not to show up in the pixel, in a case where the possibility is determined to exist by the determination unit.