< mac - Macintosh Utility Routines for ImageMagick�� �  0 




NAME

0mac - Macintosh Utility Routines for ImageMagick








SYNOPSIS

@BottleneckTest(picture,codec,depth,colormap_id)

Exit(status)

0image=ReadPICTImage(image_info)

closedir(entry)

readdir(entry)

#systemMAC(command)

telldir(entry)






9

FUNCTION DESCRIPTIONS






+

BottleneckTest

9Function 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:
2The image depth is returned as an integer pointer.



o colormap_id:
2The colormap ID is returned in this short pointer.










closedir

EFunction 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:
Dan integer value representing the status of the terminating process.








5

MacGSExecuteCommand

>Function MacGSExecuteCommand executes the Ghostscript command.






C

MacGSLaunchApplicationCore

>Function MacGSExecuteCommand launches the Ghostscript command.






;

MacGSLaunchApplication

AFunction MacGSLaunchApplication launches the Ghostscript command.






I

MacGSLaunchApplicationToFront

JFunction MacGSLaunchApplicationToFront moves the Ghostscript window to thefront.






7

MacGSQuitApplication

@Function MacGSQuitApplication quits the Ghostscript application.






9

MacGSSetWorkingFolder

BFunction MacGSSetWorkingFolder set the Ghostscript working folder.








openedir

GFunction opendir opens the directory named by filename and associates adirectory 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

BFunction readdir returns a pointer to a structure representing theHdirectory 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

IFunction ReadPICTImage reads an Apple Macintosh QuickDraw/PICT image fileFusing MacOS QuickDraw routines and returns it. It allocates the memoryFnecessary for the new Image structure and returns a pointer to the newimage.

.This routine was written and contributed by spd@daphne.cps.unizar.es (feel2free 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:
KFunction ReadPICTImage returns a pointer to the image after reading. A nullKimage is returned if there is a a memory shortage or if the image cannot beread.



o image_info:
.Specifies a pointer to an ImageInfo structure.








)

SearchForFile

+Function SearchForFile searches for a file.








seekdir

H
 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

J
 Function systemMAC executes the specified command and waits until it


H

 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

I
 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.