Retired Document
Important: This document is part of the Legacy section of the ADC Developer Library. This information should not be used for new development.
Current information on this Developer Library topic can be found here:
Clippings/AlphaComposite.c/CenterForground.txt
err = GraphicsImportGetNaturalBounds( foregroundImporter, &foregroundBounds ); |
OffsetRect( &foregroundBounds, |
(backgroundBounds.right - foregroundBounds.right) / 2, |
(backgroundBounds.bottom - foregroundBounds.bottom) / 2 ); |
err = GraphicsImportSetBoundsRect( foregroundImporter, |
&foregroundBounds ); |
© 2003 Apple Computer, Inc. All Rights Reserved. (Last updated: 2003-01-14)