cairoPatternSetFilter: cairoPatternSetFilter
Description
Sets the filter to be used for resizing when using this pattern.
See CairoFilter
for details on each filter.Usage
cairoPatternSetFilter(pattern, filter)
Details
* Note that you might want to control filtering even when you do not
have an explicit CairoPattern
object, (for example when using
cairoSetSourceSurface
). In these cases, it is convenient to
use cairoGetSource
to get access to the pattern that cairo
creates implicitly. For example:
cr$setSourceSurface(image, x, y)
cr$getSource()$setFilter(CairoFilter["nearest"])