# 2D Blur Effect

#### <a class="anchor" id="bkmrk--1"></a>Description

This chapter briefly describes how to use the 2D blur effect.

<div class="contents" id="bkmrk-ensure-that-this-eff"><div class="contents"><div class="textblock"><dl class="note"><dt></dt><dd><p class="callout info">Ensure that this effect is supported by the device platform in use.</p>

</dd></dl></div></div></div>#### <a class="anchor" id="bkmrk--2"></a>**Configure a 2D Blur Effect** 

##### <a class="anchor" id="bkmrk--3"></a>Blur Effect

By using [Candera::BlurBitmapBrushBlend](http://dev.doc.cgistudio.at/APILINK/class_candera_1_1_blur_bitmap_brush_blend.html "Output a blurred and alpha blended bitmap image. The blur effect is created by applying a gaussean fi..."), a bitmap node can be blurred, applying a gaussean filter convolution.

Blur Effect supports the following property:

<div class="contents" id="bkmrk-filtersize-%28number-o"><div class="contents"><div class="textblock">- Filtersize (Number of neighbour pixels)

</div></div></div>In this example, the upper two pictures are the original ones, the lower two are blurred with a filter size of 15.

<div drawio-diagram="2674"><img src="https://doc316en.candera.eu/uploads/images/drawio/2023-02/drawing-4-1677466738.png" alt=""/></div>

<div class="contents" id="bkmrk--0"><div class="contents"><div class="textblock"><div class="image">  
</div></div></div></div>Refer to <span style="color: rgb(230, 126, 35);">[SceneComposer User Manual](https://doc316en.candera.eu/books/scene-design/page/effects)</span> about how to configure a BlurBitmapBrushBlend effect in a 2D scene.

#### **Modify 2D Blur Effect Property** 

##### <a class="anchor" id="bkmrk--5"></a>Set Blur Filtersize

When using this effect you only have to set the filtersize. This value defines the blur factor of, for example, an image. The bigger the value, the more the image is blurred. The following example shows how to set the filtersize.

```
UInt8 factor = 5;
blur->FilterSize() = factor;
```