Filtering methods

Parameters of type ESampleStyle can be initialized with the following filtering method enumeration values:

kPointSampling: This filtering method is the default technique for interpolation. It is the fastest technique for interpolation because it samples the nearest pixel to a given point and uses no filtering. This method is useful for enlarged views of images.

kBoxFilter: This filtering method is the default technique for decimation. This technique results in point sampling when used for interpolation and uniform area averaging when used for decimation.

kTriangleFilter: This filtering method is also known as a tent filter. It uses trilinear interpolation when used for interpolation, and a cone shaped filter kernel when used for decimation. This method is very good for geometric operations that skew the image or that place a pixel at a subpixel position.

kCubicFilter: This filtering method offers quality improvements over kTriangleFilter but requires more drawing time. This method will result in a blurrier rendered image than the Sinc filters described below.

kSinc2Filter: This filtering method offers quality improvements over kBoxFilter but requires more drawing time. This method will result in a sharper rendered image than the kCubicFilter method described above, and requires less overhead than kSinc3Filter described below.

kSinc3Filter: This filtering method offers quality improvements over kCubicFilter but requires more drawing time. This method will result in a sharper rendered image than the kCubicFilter method and requires more overhead than kSinc2Filter described above.

kCustomFilter: This filtering method lets you create a customized filter. You must derive from TSamplingImageControl and override the appropriate functions as noted in the header file.


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker