The OpenD Programming Language

Pattern.setFilter

Sets the filter to be used for resizing when using this pattern. See Filter for details on each filter.

Note: You might want to control filtering even when you do not have an explicit cairo_pattern_t object, (for example when using context.setSourceSourface()). In these cases, it is convenient to use Context.getSource() to get access to the pattern that cairo creates implicitly. For example:

context.setSourceSurface(image, x, y);
context.getSource().setFilter(Filter.CAIRO_FILTER_NEAREST);
class Pattern
void
setFilter
(
Filter fil
)

Meta