Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
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 ); |
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-14