About the Picture Utilities Package
with which you can obtain qualitative and quantitative information about
pictures and pixel maps. You might want to find out about the text in a picture,
for example, to see if the fonts it uses are available in the system. You can
determine the number of colors a picture uses and obtain an optimal color
table or palette for displaying it.
7.0, the picture utilities work using the original QuickDraw, but with the limitation that any palette handles returned are NIL.
The two most common forms of storing image information are pixel maps and
for extracting information from a picture, or from a pixel map record and its
associated image.
Unless they contain specialized code for parsing pictures, many applications
deal with pictures as black boxes, perhaps imaging them into a pixel map and
Package provides a way to open that black box and deal with its contents intelligently.
and returns the standard screen resolution (72 dots per inch) for all other
pictures.
gather information about a single pixel map or picture, or you can survey a
number of them. To get information about a single picture or pixel map, use
will be returned in a picture information record.
To collect information about a number of pictures and pixel maps, you need to
make at least four calls: the NewPictInfo function creates an identifier for the collected information, and DisposPictInfo disposes of the data structures private to the collection. Information about the collection of pictures and pixel
maps is returned in a picture information record.
An entire picture need not be read into memory; pictures can be spooled to the