Legacy Documentclose button

Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.

Current information on this Reference Library topic can be found here:

Version: 1.0

Posted: 2003-10-10

Build Requirements: N/A

Runtime Requirements: Carbon CodeWarrior Pro 5, Universal Headers 3.3.2, CarbonLib SDK 1.0.4

View Source Code:

Download Sample (“CopyDeepMask.zip”, 118.6K)
Download Sample (“CopyDeepMask.dmg”, 183.5K)



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: CodeWarrior Pro 5, Universal Headers 3.3.2, CarbonLib SDK 1.0.4 Keywords: CopyBits Mask CopyDeepMask

Document Revision History

Date Notes
2003-10-10First Version

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.