Important: The information in this document is obsolete and should not be used for new development.
PlotCIconHandle
You can use thePlotCIconHandlefunction to plot an icon of resource type'cicn'. You must have previously obtained a handle to the icon usingGetCIcon(orGetResourceor 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
PlotCIconHandle should align the icon within the rectangle. See the description ofPlotIconIDon page 5-20 for a list of constants you can use in this parameter.transform- A value that specifies how
PlotCIconHandle should modify the appearance of the icon. See the description ofPlotIconIDbeginning 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
ThePlotCIconHandle function draws the specified color icon with the transform and alignment specified by thetransformandalignparameters. UnlikePlotCIcon,PlotCIconHandledoesn'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 ofPlotCIconHandle, 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.