NAME

mac - Macintosh Utility Routines for ImageMagick


SYNOPSIS

BottleneckTest(picture,codec,depth,colormap_id)

Exit(status)

image=ReadPICTImage(image_info)

closedir(entry)

readdir(entry)

systemMAC(command)

telldir(entry)


FUNCTION DESCRIPTIONS


BottleneckTest

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.


closedir

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.


Exit

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.


MacGSExecuteCommand

Function MacGSExecuteCommand executes the Ghostscript command.


MacGSLaunchApplicationCore

Function MacGSExecuteCommand launches the Ghostscript command.


MacGSLaunchApplication

Function MacGSLaunchApplication launches the Ghostscript command.


MacGSLaunchApplicationToFront

Function MacGSLaunchApplicationToFront moves the Ghostscript window to the front.


MacGSQuitApplication

Function MacGSQuitApplication quits the Ghostscript application.


MacGSSetWorkingFolder

Function MacGSSetWorkingFolder set the Ghostscript working folder.


openedir

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.


readdir

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.


ReadPICTImage

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.


SearchForFile

Function SearchForFile searches for a file.


seekdir

 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.


systemMAC

 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.


telldir

 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.