An image processing apparatus adapted to read print data containing a plurality of objects including image objects each having one or more colors and including color objects each having one color, to generate a trap graphic along a neighboring vector, which is a reference line for determining a position in which to generate a trap graphic, to output the trap graphic for objects within the page, and to perform data conversion in accordance with the format of page data which is output data, the reference line being a portion of one of two overlapping objects that is disposed behind the other object and being included in a contour of the other one of the two overlapping objects that is disposed on top of the one object, the apparatus comprising: a sample coordinate extraction portion adapted to extract coordinate points in the vicinity of the neighboring vector as sample coordinate points from among all coordinate points at which the image object is rendered, wherein at least one of the two overlapping objects is an image object, wherein the sample coordinate extraction portion is adopted to extract a predetermined number of coordinate points from among all coordinate points on the neighboring vector as reference coordinate points for sample coordinate extraction, which are referenced for extracting the sample coordinate points, and the sample coordinate extraction portion is also adapted to extract predetermined points as the sample coordinate points, the predetermined points being present on a line that is perpendicular to the neighboring vector and extends through the reference coordinate points for sample coordinate extraction; a color value acquisition portion adapted to acquire color values representing colors at the sample coordinate points and being values for calculating luminance levels of the image objects; and a trap graphic generation position determination portion adapted to determine a position in which to generate the trap graphic with reference to the neighboring vector, based on the color values at the sample coordinate points acquired by the color value acquisition portion. a sample coordinate extraction portion adapted to extract coordinate points in the vicinity of the neighboring vector as sample coordinate points from among all coordinate points at which the image object is rendered, wherein at least one of the two overlapping objects is an image object, wherein the sample coordinate extraction portion is adopted to extract a predetermined number of coordinate points from among all coordinate points on the neighboring vector as reference coordinate points for sample coordinate extraction, which are referenced for extracting the sample coordinate points, and the sample coordinate extraction portion is also adapted to extract predetermined points as the sample coordinate points, the predetermined points being present on a line that is perpendicular to the neighboring vector and extends through the reference coordinate points for sample coordinate extraction; a color value acquisition portion adapted to acquire color values representing colors at the sample coordinate points and being values for calculating luminance levels of the image objects; and a trap graphic generation position determination portion adapted to determine a position in which to generate the trap graphic with reference to the neighboring vector, based on the color values at the sample coordinate points acquired by the color value acquisition portion.