resample.h

Go to the documentation of this file.
00001 /*
00002   Copyright 1999-2009 ImageMagick Studio LLC, a non-profit organization
00003   dedicated to making software imaging solutions freely available.
00004   
00005   You may not use this file except in compliance with the License.
00006   obtain a copy of the License at
00007   
00008     http://www.imagemagick.org/script/license.php
00009   
00010   Unless required by applicable law or agreed to in writing, software
00011   distributed under the License is distributed on an "AS IS" BASIS,
00012   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013   See the License for the specific language governing permissions and
00014   limitations under the License.
00015 
00016   MagickCore graphic resample methods.
00017 */
00018 #ifndef _MAGICKCORE_RESAMPLE_H
00019 #define _MAGICKCORE_RESAMPLE_H
00020 
00021 #if defined(__cplusplus) || defined(c_plusplus)
00022 extern "C" {
00023 #endif
00024 
00025 #include <magick/cache-view.h>
00026 
00027 typedef enum
00028 {
00029   UndefinedFilter,
00030   PointFilter,
00031   BoxFilter,
00032   TriangleFilter,
00033   HermiteFilter,
00034   HanningFilter,
00035   HammingFilter,
00036   BlackmanFilter,
00037   GaussianFilter,
00038   QuadraticFilter,
00039   CubicFilter,
00040   CatromFilter,
00041   MitchellFilter,
00042   LanczosFilter,
00043   BesselFilter,
00044   SincFilter,
00045   KaiserFilter,
00046   WelshFilter,
00047   ParzenFilter,
00048   LagrangeFilter,
00049   BohmanFilter,
00050   BartlettFilter,
00051   SentinelFilter  /* a count of all the filters, not a real filter */
00052 } FilterTypes;
00053 
00054 typedef enum
00055 {
00056   UndefinedInterpolatePixel,
00057   AverageInterpolatePixel,
00058   BicubicInterpolatePixel,
00059   BilinearInterpolatePixel,
00060   FilterInterpolatePixel,
00061   IntegerInterpolatePixel,
00062   MeshInterpolatePixel,
00063   NearestNeighborInterpolatePixel,
00064   SplineInterpolatePixel
00065 } InterpolatePixelMethod;
00066 
00067 typedef struct _ResampleFilter
00068   ResampleFilter;
00069 
00070 extern MagickExport MagickBooleanType
00071   ResamplePixelColor(ResampleFilter *,const double,const double,
00072     MagickPixelPacket *),
00073   SetResampleFilterInterpolateMethod(ResampleFilter *,
00074     const InterpolatePixelMethod),
00075   SetResampleFilterVirtualPixelMethod(ResampleFilter *,
00076     const VirtualPixelMethod);
00077 
00078 extern MagickExport ResampleFilter
00079   *AcquireResampleFilter(const Image *,ExceptionInfo *),
00080   *DestroyResampleFilter(ResampleFilter *);
00081 
00082 extern MagickExport void
00083   ScaleResampleFilter(ResampleFilter *,const double,const double,const double,
00084     const double),
00085   SetResampleFilter(ResampleFilter *,const FilterTypes,const double);
00086 
00087 #if defined(__cplusplus) || defined(c_plusplus)
00088 }
00089 #endif
00090 
00091 #endif

Generated on 19 Nov 2009 for MagickCore by  doxygen 1.6.1