Package: cairo

Function cairo-pattern-set-filter

Lambda List

cairo-pattern-set-filter (pattern filter)

Arguments

pattern -- a cairo-pattern-t instance
filter -- a value of the cairo-filter-t enumeration describing the filter to use for resizing the pattern

Details

Sets the filter to be used for resizing when using this pattern. See the cairo-filter-t enumeration for details on each filter.

Note that you might want to control filtering even when you do not have an explicit cairo-pattern-t instance, for example when using the function cairo-set-source-surface. In these cases, it is convenient to use the function cairo-get-source to get access to the pattern that Cairo creates implicitly. For example:
(cairo-set-source-surface cr image x y)
(cairo-pattern-set-filter (cairo-get-source cr :nearest))  
 

See also

2020-12-25