CenterRectAACelInDisplay

Centers an anti-aliased cel in the display.

Synopsis

void CenterRectAACelInDisplay (CCB *cel)

Description

Centers an anti-aliased cel over or within the display. The display is assumed to be 320 x 240.

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 non-rectangular shape, the result is invalid.

Arguments

cel
Pointer to the cel to be centered.

Implementation

Library call implemented in lib3do.lib.

Associated Files

lib3do.lib, celutils.h

See Also

CenterRectCelInDisplay, CenterRectCelListInDisplay