/*********************************************************/
/* This source code copyright (c) 1991-2001, Aaron Giles */
/* See the Read Me file for licensing information.       */
/* Contact email: mac@aarongiles.com                     */
/*********************************************************/

#ifndef __PICT__
#define __PICT__

Boolean idPICT(uchar *theData, long theSize, short refNum, FSSpec *theSpec);
OSErr OpenPICT(ImageHandle theImage);
void GetImageInfo(ImageHandle theImage);
OSErr DrawPICT(Handle theHandle, JVDrawParamsHandle theParams);
pascal OSErr DrawPICTProgress(short theMessage, Fixed thePercent, ImageHandle theImage);
OSErr LoadPICT(short theFile, ImageHandle theImage);
OSErr SavePICT(FSSpec *theSpec, Handle theHandle, GWorldPtr thePreview, Rect *theRect, Handle privates);
OSErr FixPICT(ImageHandle theImage, Handle *finalData, Boolean palette);
Handle AddColors(Handle theHandle, ImageHandle theImage);
Handle CropPICT(Handle theHandle, ImageHandle theImage);
OSErr AddPICTPreview(FSSpec *theFile, GWorldPtr thePreview, Rect *theRect);

#endif
