1. A computer-implemented method comprising: selecting, by a processor, a polygon that includes a convex shape defined by vertices represented by coordinates with integer values; determining a polygon transfer function from pairs of intersecting lines defined by a portion of the vertices, wherein the polygon transfer function defines image processing operations independent of the scale of the polygon; and producing an image by using the polygon transfer function.