Learn R Programming

RGtk2 (version 2.20.31)

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)

Arguments

filter
[CairoFilter] a CairoFilter describing the filter to use for resizing the pattern

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"])