★ wanayoo — archive 1999 http://developer.apple.com/samplecode/Sample_Code/Graphics_2D/CopyDeepMask.htmNouvelle recherche | Portail wanayoo
Technical: Sample Code: Graphics 2D: CopyDeepMask
Graphics 2D
ADC Resources
Sample Code

CopyDeepMask

download (181.3 KB)

Version:

1.1

Date:

Wednesday, August 16, 2000

Description:

This sample has been updated for the Carbon API. This snippet demonstrates the use of CopyDeepMask using 2 PICTS; one a photograph and the other a triangular mask. It uses 2 offscreen gworlds to hold the source and mask pixmaps. CopyDeepMask is then used to create the masked image and display it in the application window. The source, mask, and destination rectangles are all the same size in order avoid altering pixel sizes.

Requirements: Color QuickDraw, CarbonLib




Samples are designed to work with CodeWarrior 2 or later and Universal Interfaces 3.2 unless otherwise noted. Archives can be uncompressed with StuffIt Expander 5.0 or later.
Gray line
 
Site Map | Search Tips | Options | Keywords

Contact Us | Privacy Notice
Copyright © 2000 Apple Computer, Inc. All rights reserved.
1-800-MY-APPLE