# `Toddy.Iced.FilterMethod`
[🔗](https://github.com/toddy-ui/toddy-elixir/blob/v0.3.0/lib/toddy/iced/filter_method.ex#L1)

Interpolation mode for the image `filter_method` prop.

Maps to iced's `image::FilterMethod` enum.

# `t`

```elixir
@type t() :: :nearest | :linear
```

# `encode`

```elixir
@spec encode(filter_method :: t()) :: String.t()
```

Encodes a filter method value to the wire format.

## Examples

    iex> Toddy.Iced.FilterMethod.encode(:nearest)
    "nearest"

    iex> Toddy.Iced.FilterMethod.encode(:linear)
    "linear"

---

*Consult [api-reference.md](api-reference.md) for complete listing*
