Important: The information in this document is obsolete and should not be used for new development.
DisposePictInfo
When you are finished gathering information from a survey of pictures, pixel maps, or bitmaps, use theDisposePictInfofunction to dispose of the private data structures allocated by theNewPictInfofunction. TheDisposePictInfofunction is also available as theDisposPictInfofunction.
FUNCTION DisposePictInfo (thePictInfoID: PictInfoID): OSErr;
- thePictInfoID
- The unique identifier returned by
NewPictInfo.DESCRIPTION
TheDisposePictInfofunction disposes of the private data structures allocated by theNewPictInfofunction, which is described on page 7-52.The
DisposePictInfofunction does not dispose of any of the handles returned to you in aPictInforecord by theRetrievePictInfofunction, which is described on page 7-57. Instead, you can dispose of aPaletterecord by using theDisposePaletteprocedure. You can dispose of aColorTablerecord by using theDisposeCTableprocedure. You can dispose of other allocations with theDisposeHandleprocedure.SPECIAL CONSIDERATIONS
TheDisposePictInfofunction may move or purge memory.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theDisposePictInfofunction are
Trap macro Selector _Pack15 $0206 RESULT CODE
pictInfoIDErr -11001 Invalid picture information ID SEE ALSO
TheDisposePaletteprocedure is described in Advanced Color Imaging on the Mac OS. TheDisposeCTableprocedure is described in the chapter "Color QuickDraw" in this book. TheDisposeHandleprocedure is described in the chapter "Memory Manager" in Inside Macintosh: Memory.