Important: The information in this document is obsolete and should not be used for new development.
RetrievePictInfo
Use theRetrievePictInfofunction to return information about all the pictures, pixel maps, and bitmaps included in a survey.
FUNCTION RetrievePictInfo (thePictInfoID: PictInfoID; VAR thePictInfo: PictInfo; colorsRequested: Integer): OSErr;
thePictInfoID- The ID number--returned by the
NewPictInfofunction--that identifies the survey of pictures, pixel maps, and bitmaps. TheNewPictInfofunction is described on page 7-52.thePictInfo- A pointer to the
PictInforecord that holds information about the pictures or images in the survey. ThePictInforecord is described on page 7-31.colorsRequested- From 1 to 256, the number of colors you want returned in the
ColorTableorPaletterecord included in thePictInforecord.DESCRIPTION
In aPictInforecord that you point to in the parameterthePictInfo, theRetrievePictInfofunction returns information about all of the pictures and images collected in the survey that you specify in the parameterthePictInfoID.After using the
NewPictInfofunction to create a new survey, and then usingRecordPictInfoto add pictures to your survey andRecordPixMapInfoto add pixel maps and bitmaps to your survey, you can callRetrievePictInfo.When you are finished with the information in the
PictInforecord, be sure to dispose of it. You can dispose of thePaletterecord by using theDisposePaletteprocedure. You can dispose of theColorTablerecord by using theDisposeCTableprocedure. You can dispose of other allocations with theDisposeHandleprocedure. You should also use theDisposePictInfofunction (described next) to dispose of the private data structures created by theNewPictInfofunction.SPECIAL CONSIDERATIONS
TheRetrievePictInfofunction may move or purge memory.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theRetrievePictInfofunction are
Trap macro Selector _Pack15 $0505 RESULT CODES
pictInfoIDErr -11001 Invalid picture information ID colorsRequestedErr -11004 Number out of range or greater than that passed to NewPictInfoSEE 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.