Important: The information in this document is obsolete and should not be used for new development.
PlotCIconHandle
You can use thePlotCIconHandle
function to plot an icon of resource type'cicn'
. You must have previously obtained a handle to the icon usingGetCIcon
(orGetResource
or other Resource Manager routines).
FUNCTION PlotCIconHandle (theRect: Rect; align: IconAlignmentType; transform: IconTransformType; theCIcon: CIconHandle): OSErr;
theRect
- The rectangle in which to draw the icon, specified in local coordinates of the current graphics port.
align
- A value that specifies how
PlotCIcon
Handle should align the icon within the rectangle. See the description ofPlotIconID
on page 5-20 for a list of constants you can use in this parameter.transform
- A value that specifies how
PlotCIcon
Handle should modify the appearance of the icon. See the description ofPlotIconID
beginning on page 5-20 for a list of constants you can use in this parameter.theCIcon
- A handle to the color icon record of the icon to draw.
DESCRIPTION
ThePlotCIcon
Handle function draws the specified color icon with the transform and alignment specified by thetransform
andalign
parameters. UnlikePlotCIcon
,PlotCIconHandle
doesn't honor the current foreground and background colors.RESULT CODES
noErr 0 No error paramErr -50 Error in parameter list SEE ALSO
For an example of the use ofPlotCIcon
Handle, see Listing 5-8 on page 5-16. For information onGetCIcon
, see page 5-29. For a description of the color icon record, see page 5-17.