geometry

The following routines can be used to alter the basic geometry and size of a bitmap:

flipDibHor(dib)
flips the bitmap horizontally (left <-> right)
flipDibVert(dib)
flips the bitmap vertically (top <-> bottom)
new_dib = scaleDib(dib, width, height, kill_old)
returns a copy of the bitmap, scaled to the new width and height.
new_dib = scaleDibPct(dib, pct, kill_old)
returns a copy of the bitmap, scaled by pct %.
new_dib = rotateDib(dib, angle, kill_old)
returns a copy of the bitmap, rotated by angle degrees (nearest 90°).
new_dib = rotateDibFree(dib, angle, bgcolor, kill_old)
returns a copy of the bitmap, rotated by angle degrees.
drawDibTransformedPolygon(a32Dib dib_dest, a32Dib dib_src, sequence pol_dst, sequence pol_src)
Draws the region inside polygon pol_src from bitmap dib_src on bitmap dib_dest, transformed to the polygon with coordinates pol_dst.