- Inside Macintosh: More Macintosh Toolbox /
- Chapter 5 - Icon Utilities / Icon Utilities Reference
- Icon Utilities Routines
Converting an Icon Mask to a Region
The IconSuiteToRgn, IconIDToRgn, and IconMethodToRgn functions create a region from an icon's mask. IconSuiteToRgn and IconIDToRgn operate on an icon identified by a handle to a suite and an icon ID, respectively. The IconMethodToRgn function performs this operation on the icon mask that it obtains with the aid of
your icon getter function. Once you have a region that describes the icon mask for a given icon, you can use it to perform accurate hit-testing and outline dragging of the icon in your application.
Subtopics
- IconSuiteToRgn
-
- IconIDToRgn
-
- IconMethodToRgn
-
© Apple Computer, Inc.
6 JUL 1996