From cd26fa266b51ffd91aa9f2c60dd353c53729291e Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Mon, 28 Jan 2008 16:10:10 -0800 Subject: [PATCH] Add documentation for cairo_filter_t --- src/cairo.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/cairo.h b/src/cairo.h index aa7c1ceb8..bddf315c0 100644 --- a/src/cairo.h +++ b/src/cairo.h @@ -1793,6 +1793,24 @@ cairo_pattern_set_extend (cairo_pattern_t *pattern, cairo_extend_t extend); cairo_public cairo_extend_t cairo_pattern_get_extend (cairo_pattern_t *pattern); +/** + * cairo_filter_t + * @CAIRO_FILTER_FAST: A high-performance filter, with quality similar + * to NEAREST + * @CAIRO_FILTER_GOOD: A reasonable-performance filter, with quality + * similar to BILINEAR + * @CAIRO_FILTER_BEST: The highest-quality available, performance may + * not be suitable for interactive use. + * @CAIRO_FILTER_NEAREST: Nearest-neighbor filtering + * @CAIRO_FILTER_BILINEAR: Linear interpolation in two dimensions + * @CAIRO_FILTER_GAUSSIAN: This filter value is currently + * unimplemented, and should not be used in current code. + * + * #cairo_filter_t is used to indicate what filtering should be + * applied when reading pixel values from patterns. See + * cairo_pattern_set_source() for indicating the desired filter to be + * used with a particular pattern. + */ typedef enum _cairo_filter { CAIRO_FILTER_FAST, CAIRO_FILTER_GOOD,