enum Cairo::Filter

Overview

Filter is used to indicate what filtering should be applied when reading pixel values from patterns. See Pattern#filter= for indicating the desired filter to be used with a particular pattern.

Defined in:

cairo/filter.cr

Enum Members

Fast = 0

A high-performance filter, with quality similar to Filter::Nearest.

Good = 1

A reasonable-performance filter, with quality similar to Filter::Bilinear.

Best = 2

The highest-quality available, performance may not be suitable for interactive use.

Nearest = 3

Nearest-neighbor filtering.

Bilinear = 4

Linear interpolation in two dimensions.

Gaussian = 5

This filter value is currently unimplemented, and should not be used in current code.

Instance Method Summary

Instance Method Detail

def best? #

[View source]
def bilinear? #

[View source]
def fast? #

[View source]
def gaussian? #

[View source]
def good? #

[View source]
def nearest? #

[View source]