Site Tools


documentation:development:opera:pf25:ppgfldr:smmfldr:ldofldr:01ldo016

CenterRectAACelInCRect

Centers an anti-aliased cel in a CRect.

Synopsis

void CenterRectAACelInCRect (CCB *cel, CRect *rect)

Description

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.

Arguments

  • cel Pointer to the cel to be centered.
  • rect Pointer to a CRect describing the area within which the cel is to be centered.

Implementation

Library call implemented in lib3do.lib.

Associated Files

lib3do.lib, celutils.h

See Also

documentation/development/opera/pf25/ppgfldr/smmfldr/ldofldr/01ldo016.txt · Last modified: 2022/10/10 16:53 by 127.0.0.1