Important: The information in this document is obsolete and should not be used for new development.
RecordPictInfo
To add a picture to an informational survey of multiple pictures, use theRecordPictInfofunction.
FUNCTION RecordPictInfo (thePictInfoID: PictInfoID; thePictHandle: PicHandle): OSErr;
thePictInfoID- The ID number--returned by the
NewPictInfofunction--that identifies the survey to which you are adding the picture. TheNewPictInfofunction is described on page 7-52.thePictHandle
A handle to the picture being added to the survey.DESCRIPTION
TheRecordPictInfofunction adds the picture you specify in the parameterthePictHandleto the survey of pictures identified by the parameterthePictInfoID. UseRecordPictInforepeatedly to add additional pictures to your survey.After you have collected all of the pictures you need, use the
RetrievePictInfofunction, described on page 7-57, to return information about pictures in the survey.SPECIAL CONSIDERATIONS
When you ask for color information,RecordPictInfotakes into account only the version 2 and extended version picture opcodesRGBFgCol,RGBBkCol,BkPixPat,PnPixPat,FillPixPat, andHiliteColor. Each occurrence of these opcodes is treated as 1 pixel, regardless of the number and sizes of the objects drawn with that color. If you need an accurate set of colors from a complex picture, create an image of the picture in an offscreen pixel map, and then call theGetPixMapInfofunction (described on page 7-49) to obtain color information about that pixel map.The
RecordPictInfofunction may move or purge memory.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theRecordPictInfofunction are
Trap macro Selector _Pack15 $0403 RESULT CODES
pictInfoIDErr -11001 Invalid picture information ID pictureDataErr -11005 Invalid picture data