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 * 00008 * Mark Alexander 00009 * Side Effects 00010 * 477 Richmond Street West 00011 * Toronto, Ontario 00012 * Canada M5V 3E7 00013 * 416-504-9876 00014 * 00015 * NAME: TIL_IntScale.h 00016 * 00017 * COMMENTS: 00018 * Scales an image down by an integer factor. 00019 * 00020 */ 00021 #ifndef TIL_INTSCALE_H 00022 #define TIL_INTSCALE_H 00023 00024 #include "TIL_API.h" 00025 #include "TIL_Defines.h" 00026 00027 class TIL_API TIL_IntScaleParms 00028 { 00029 public: 00030 TIL_DataFormat myType; 00031 unsigned int myBlack, myWhite; 00032 00033 const void *mySource; 00034 int mySStride; 00035 00036 const void *myDest; 00037 int myDStride; 00038 int myDXOff; 00039 int myDYOff; 00040 00041 int myFromXSize; 00042 int myFromYSize; 00043 int myReduction; 00044 00045 TIL_IntScaleParms(); 00046 }; 00047 00048 class TIL_API TIL_IntScale 00049 { 00050 public: 00051 static void reduce(const TIL_IntScaleParms &parms); 00052 }; 00053 00054 00055 #endif
1.5.9