Important: The information in this document is obsolete and should not be used for new development.
RetrievePictInfo
Use theRetrievePictInfo
function 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
NewPictInfo
function--that identifies the survey of pictures, pixel maps, and bitmaps. TheNewPictInfo
function is described on page 7-52.thePictInfo
- A pointer to the
PictInfo
record that holds information about the pictures or images in the survey. ThePictInfo
record is described on page 7-31.colorsRequested
- From 1 to 256, the number of colors you want returned in the
ColorTable
orPalette
record included in thePictInfo
record.DESCRIPTION
In aPictInfo
record that you point to in the parameterthePictInfo
, theRetrievePictInfo
function returns information about all of the pictures and images collected in the survey that you specify in the parameterthePictInfoID
.After using the
NewPictInfo
function to create a new survey, and then usingRecordPictInfo
to add pictures to your survey andRecordPixMapInfo
to add pixel maps and bitmaps to your survey, you can callRetrievePictInfo
.When you are finished with the information in the
PictInfo
record, be sure to dispose of it. You can dispose of thePalette
record by using theDisposePalette
procedure. You can dispose of theColorTable
record by using theDisposeCTable
procedure. You can dispose of other allocations with theDisposeHandle
procedure. You should also use theDisposePictInfo
function (described next) to dispose of the private data structures created by theNewPictInfo
function.SPECIAL CONSIDERATIONS
TheRetrievePictInfo
function may move or purge memory.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theRetrievePictInfo
function 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 NewPictInfo
SEE ALSO
TheDisposePalette
procedure is described in Advanced Color Imaging on the Mac OS. TheDisposeCTable
procedure is described in the chapter "Color QuickDraw" in this book. TheDisposeHandle
procedure is described in the chapter "Memory Manager" in Inside Macintosh: Memory.