Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

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.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996