Important: The information in this document is obsolete and should not be used for new development.
PlotSICNHandle
You can use thePlotSICNHandlefunction to plot a small icon of resource type'SICN'with a specified transform and alignment. You must have previously obtained a handle to the icon usingGetResource(or other Resource Manager routines).
FUNCTION PlotSICNHandle (theRect: Rect; align: IconAlignmentType; transform: IconTransformType; theSICN: Handle): 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
PlotSICNHandleshould 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
PlotSICNHandleshould 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.theSICN- A handle to the icon to draw.
DESCRIPTION
ThePlotSICNHandlefunction draws the specified small icon with the transform and alignment specified by thetransformandalignparameters. Only'SICN'resources with a single member--or with two members, the second of which is a mask for the first--plot correctly.RESULT CODES
noErr 0 No error noMaskFoundErr -1000 No mask found SEE ALSO
For an example of the use of thePlotSICNHandlefunction, see Listing 5-9 on page 5-16.