home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks95 / Closure.sit / Closure / Sources / PhotoshopHeaders / AcquireUtilities.h next >
Text File  |  1995-06-24  |  1KB  |  53 lines

  1. /*
  2.     File: AcquireUtilites.h
  3.  
  4.     Copyright 1994-95 by Adobe Systems, Inc.  All rights reserved.
  5.  
  6.     Utilities for acquire modules.
  7. */
  8.  
  9. #ifndef __AcquireUtilities__
  10. #define __AcquireUtilities__
  11.  
  12. #include "PITypes.h"
  13. #include "PIGeneral.h"
  14. #include "PIAcquire.h"
  15.  
  16. /*****************************************************************************/
  17.  
  18. /* The region of the image being acquired (an area and a range of planes).   */
  19.  
  20. typedef struct AcquireRegion
  21.     {
  22.     Rect rect;
  23.     int16 loPlane;
  24.     int16 hiPlane;
  25.     }
  26. AcquireRegion;
  27.  
  28. /* The layout of the data.                                                   */
  29.  
  30. typedef struct AcquireDataLayout
  31.     {
  32.     int32 rowBytes;
  33.     int32 colBytes;
  34.     int32 planeBytes;
  35.     }
  36. AcquireDataLayout;
  37.     
  38. /*****************************************************************************/
  39.  
  40. OSErr StoreData (AcquireRecord *stuff,
  41.                  void *data,
  42.                  AcquireRegion *region,
  43.                  AcquireDataLayout *layout);
  44.  
  45. OSErr FetchData (AcquireRecord *stuff,
  46.                  void *data,
  47.                  AcquireRegion *region,
  48.                  AcquireDataLayout *layout);
  49.  
  50. /*****************************************************************************/
  51.  
  52. #endif
  53.