Centers an anti-aliased cel in a CRect.
void CenterRectAACelInCRect (CCB *cel, CRect *rect)
Centers an anti-aliased cel over or within a specified rectangle.
The ccb_XPos and ccb_YPos fields in both the data and alpha- channel CCBs are modified. Other CCB fields are not modified. The centering is based on the cel's projected size, not its source data size. If the cel is projected to a nonrectangular shape, the result is invalid.
Library call implemented in lib3do.lib.
lib3do.lib, celutils.h
CenterRectAACelInSRect
, CenterRectCelInCRect, CenterRectCelListInCRect