Subversion Repositories filter_foundry

Rev

Rev 171 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. /*
  2.     This file is part of Filter Foundry, a filter plugin for Adobe Photoshop
  3.     Copyright (C) 2003-7 Toby Thain, toby@telegraphics.com.au
  4.  
  5.     This program is free software; you can redistribute it and/or modify
  6.     it under the terms of the GNU General Public License as published by  
  7.     the Free Software Foundation; either version 2 of the License, or
  8.     (at your option) any later version.
  9.  
  10.     This program is distributed in the hope that it will be useful,
  11.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.     GNU General Public License for more details.
  14.  
  15.     You should have received a copy of the GNU General Public License  
  16.     along with this program; if not, write to the Free Software
  17.     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  18. */
  19.  
  20. #ifndef PREVIEW_H_
  21. #define PREVIEW_H_
  22.  
  23. #include "world.h"
  24.  
  25. #include "PIFilter.h"
  26.  
  27. #include "ui_compat.h"
  28.  
  29. #include "misc.h"
  30.  
  31. extern PSPixelMap preview_pmap;
  32. extern PSPixelMask preview_pmask;
  33. extern Handle preview_handle;
  34. extern UIRECT preview_rect;
  35. extern int preview_w,preview_h,nplanes,needall,needinput;
  36. extern Point preview_scroll;
  37. extern double zoomfactor,fitzoom;
  38.  
  39. extern OSErr process_scaled(FilterRecordPtr pb, Boolean progress,
  40.                                                         Rect *filterRect, Rect *outRect,
  41.                                                         void *outData, long outRowBytes, double zoom);
  42. extern Boolean alertuser(char *err,char *more);
  43. extern void evalinit();
  44.  
  45. Boolean setup_preview(FilterRecordPtr pb,int nplanes);
  46. void recalc_preview(FilterRecordPtr pb,DIALOGREF dp);
  47. void dispose_preview();
  48. OSErr drawpreview(DIALOGREF dp,void *hdc,Ptr imageptr);
  49.        
  50. #endif /*PREVIEW_H_*/
  51.