00001 /* 00002 * PROPRIETARY INFORMATION. This software is proprietary to 00003 * Side Effects Software Inc., and is not to be reproduced, 00004 * transmitted, or disclosed in any way without written permission. 00005 * 00006 * Produced by: 00007 * Mark Alexander 00008 * Side Effects Software Inc 00009 * 477 Richmond Street West 00010 * Toronto, Ontario 00011 * Canada M5V 3E7 00012 * 416-504-9876 00013 * 00014 * NAME: IMG_FileFilterScale ( IMG Library, C++) 00015 * 00016 * COMMENTS: 00017 * 00018 * Scales a file from one res to another. 00019 * 00020 */ 00021 #ifndef IMG_FILE_FILTER_SCALE_H 00022 #define IMG_FILE_FILTER_SCALE_H 00023 00024 class img_PlaneScale; 00025 00026 #include <UT/UT_PtrArray.h> 00027 #include <UT/UT_FilterType.h> 00028 00029 #include "IMG_FileFilter.h" 00030 00031 class IMG_API IMG_FileFilterScale : public IMG_FileFilter 00032 { 00033 public: 00034 IMG_FileFilterScale(IMG_File *file_to_filter); 00035 virtual ~IMG_FileFilterScale(); 00036 00037 virtual const char *className() const { return "IMG_FileFilterScale"; } 00038 00039 void initScale(int xres, int yres, UT_FilterType filter); 00040 00041 virtual const void *readPlaneScanline(int y, const IMG_Plane &pi); 00042 00043 virtual int writePlaneScanline(const void *data, int y, 00044 const IMG_Plane &pi); 00045 private: 00046 bool grabScan(void *buffer, int y, int pi, int comp); 00047 virtual void finishedScanline(int scan); 00048 00049 UT_PtrArray<img_PlaneScale *> myPlaneScale; 00050 int mySupport; 00051 00052 friend class img_PlaneScale; 00053 }; 00054 00055 #endif
1.5.9