---
title: "MagnificationFilter"
---
<!-- DO NOT EDIT! This file was auto-generated by crates/build/re_types_builder/src/codegen/docs/website.rs -->

Filter used when a single texel/pixel of an image is displayed larger than a single screen pixel.

This happens when zooming into an image, when displaying a low-resolution image in a large area,
or when viewing an image up close in 3D space.

## Variants
#### `Nearest` = 1
Show the nearest pixel value.

This will give a blocky appearance when the image is scaled up.
Used as default when rendering 2D images.

#### `Linear` = 2
Linearly interpolate the nearest neighbors, creating a smoother look when the image is scaled up.

Used as default for mesh rendering.

#### `Bicubic` = 3
Bicubic interpolation using a Catmull-Rom spline, creating the smoothest look when the image is scaled up.

This is computationally more expensive than linear filtering but produces sharper results with less blurring.
Unlike bilinear filtering, this avoids cross-shaped artifacts at texel boundaries.


## Arrow datatype
```
UInt8
```

## API reference links
 * 🌊 [C++ API docs for `MagnificationFilter`](https://ref.rerun.io/docs/cpp/stable/namespacererun_1_1components.html)
 * 🐍 [Python API docs for `MagnificationFilter`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.MagnificationFilter)
 * 🦀 [Rust API docs for `MagnificationFilter`](https://docs.rs/rerun/latest/rerun/components/enum.MagnificationFilter.html)


## Used by

* [`DepthImage`](../archetypes/depth_image.md)
* [`EncodedDepthImage`](../archetypes/encoded_depth_image.md)
* [`EncodedImage`](../archetypes/encoded_image.md)
* [`Image`](../archetypes/image.md)
