mac - Macintosh Utility Routines for ImageMagick
BottleneckTest(picture,codec,depth,colormap_id)
Exit(status)
image=ReadPICTImage(image_info)
closedir(entry)
readdir(entry)
systemMAC(command)
telldir(entry)
Function BottleneckTest intercepts any compressed images.
The format of the BottleneckTest routine is:
BottleneckTest(picture,codec,depth,colormap_id)
A description of each parameter follows:
- o picture:
-
Specifies a pointer to a PicHandle structure.
- o codec:
-
The code type is returned in this CodecType pointer structure.
- o depth:
-
The image depth is returned as an integer pointer.
- o colormap_id:
-
The colormap ID is returned in this short pointer.
Function closedir closes the named directory stream and frees the DIR
structure.
The format of the closedir routine is:
closedir(entry)
A description of each parameter follows:
- o entry:
-
Specifies a pointer to a DIR structure.
Function Exit exits the process.
The format of the Exit routine is:
Exit(status)
A description of each parameter follows:
- o status:
-
an integer value representing the status of the terminating process.
Function MacGSExecuteCommand executes the Ghostscript command.
Function MacGSExecuteCommand launches the Ghostscript command.
Function MacGSLaunchApplication launches the Ghostscript command.
Function MacGSLaunchApplicationToFront moves the Ghostscript window to the
front.
Function MacGSQuitApplication quits the Ghostscript application.
Function MacGSSetWorkingFolder set the Ghostscript working folder.
Function opendir opens the directory named by filename and associates a
directory stream with it.
The format of the opendir routine is:
opendir(entry)
A description of each parameter follows:
- o entry:
-
Specifies a pointer to a DIR structure.
Function readdir returns a pointer to a structure representing the
directory entry at the current position in the directory stream to which
entry refers.
The format of the readdir
readdir(entry)
A description of each parameter follows:
- o entry:
-
Specifies a pointer to a DIR structure.
Function ReadPICTImage reads an Apple Macintosh QuickDraw/PICT image file
using MacOS QuickDraw routines and returns it. It allocates the memory
necessary for the new Image structure and returns a pointer to the new
image.
This routine was written and contributed by spd@daphne.cps.unizar.es (feel
free to copy and use it as you want. No warranty).
The format of the ReadPICTImage routine is:
image=ReadPICTImage(image_info)
A description of each parameter follows:
- o image:
-
Function ReadPICTImage returns a pointer to the image after reading. A null
image is returned if there is a a memory shortage or if the image cannot be
read.
- o image_info:
-
Specifies a pointer to an ImageInfo structure.
Function SearchForFile searches for a file.
Function seekdir sets the position of the next readdir() operation
on the directory stream.
The format of the seekdir routine is:
closedir(entry,position)
A description of each parameter follows:
- o entry:
-
Specifies a pointer to a DIR structure.
- o position:
-
specifies the position associated with the directory stream.
Function systemMAC executes the specified command and waits until it
terminates. The returned value is the exit status of the command.
The format of the systemMAC routine is:
systemMAC(command)
A description of each parameter follows:
- o command:
-
This string is the command to execute.
Function telldir returns the current location associated with the
named directory stream.
The format of the telldir routine is:
telldir(entry)
A description of each parameter follows:
- o entry:
-
Specifies a pointer to a DIR structure.