home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C++ / Applications / PICSee Dust 1.01 / Secondary Source / CropPICTs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-04  |  1.1 KB  |  38 lines  |  [TEXT/CWIE]

  1. #ifndef CROPPICTS_H_
  2. #define CROPPICTS_H_
  3.  
  4. #ifndef GRAPHICSBUFFER_H_
  5. #include "GraphicsBuffers.h"
  6. #endif
  7.  
  8. // Dispose the output picture with KillPicture, not DisposeHandle
  9. Boolean CapturePICT(
  10.     const GraphicsBufferPtr    srcBuffer,
  11.     const GraphicsBufferPtr    destBuffer,
  12.     const Rect        *srcRect,
  13.     const Rect        *destRect,
  14.     PicHandle        *croppedPic);    // May be NULL if you don't wish to capture picture
  15.                                     // If NULL, it just copies between buffers...
  16.                                     //    and in essence working like CopyGraphicsBuffer
  17.  
  18.  
  19. // Dispose the output picture with KillPicture, not DisposeHandle
  20. Boolean CropPICT(
  21.     const PicHandle    inputPic,
  22.     const GraphicsBufferPtr    picBuffer,
  23.     const GraphicsBufferPtr    destBuffer,    // OK for picBuffer & destBuffer to be same
  24.     const Rect        *srcCropRect,
  25.     const Rect        *destCropRect,        // OK for destArea & cropArea to be the same
  26.     PicHandle        *croppedPic);
  27.  
  28.  
  29. // It is up to the caller to create the outputFile and
  30. // set the monitor's depth before calling CropPICSFile
  31. OSErr CropPICSFile(
  32.     Boolean            traversePICSByID,
  33.     const Rect        *cropArea,
  34.     const GDHandle    outputDevice,
  35.     const FSSpec    *picsFile,
  36.     const FSSpec    *outputFile);
  37.     
  38. #endif // CROPPICTS_H_