# OpenGL Bitmap Brush Mask Effects

### <a class="anchor" id="bkmrk--7"></a>GlBitmapBrushMaskBlend

This effect allows to add a mask (i.e. to add additional alpha information) to an image by defining a mask image. The position, orientation and scaling of this mask image is defined by a Mask Node.

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

#### <a class="anchor" id="bkmrk--9"></a>Image

Here you can define the image that should be displayed. The image can be selected from the list of imported images in the “Choose Item” dialog. The mask itself is configured with the two additional properties “Mask Node” and “Mask”.

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

<div class="contents" id="bkmrk--1"><div class="contents"><div class="textblock"><div class="image">  
</div></div></div></div>#### <a class="anchor" id="bkmrk--11"></a>Mask

An image with alpha information can be configured as mask for another image. This way, the mask image can add alpha information to an image without alpha information. The color information of the mask image is not taken into account. Also, blend options are not applied between the displayed bitmap and the mask image.

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

<div class="contents" id="bkmrk--3"><div class="contents"><div class="textblock"><div class="image">  
</div></div></div></div>#### <a class="anchor" id="bkmrk--13"></a>Mask Node

The “Mask Node” provides transformation information (that means position, orientation and scaling factor) for the mask image. If no Mask Node is configured, the mask is set to the same position as the displayed image with no rotation and scaling factor 1. The Mask Node can be selected in the “Choose Item” dialog that opens after clicking the icon to the right of the property’s value.

### <a class="anchor" id="bkmrk--14"></a>GlBitmapBrushColorMaskBlend

The effect OpenGlBitmapBrushColorMaskBlend is similar to OpenGlBitmapBrushMaskBlend but has an additional color Property, which the configured bitmap is blended with.

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

<div class="contents" id="bkmrk--5"><div class="contents"><div class="textblock"><div class="image">  
</div></div></div></div>#### <a class="anchor" id="bkmrk--16"></a>Color

The color can be chosen in the color palette dialog where you can also define and save the custom colors you need for your project. The default blending color after applying this effect is white.

<div class="contents" id="bkmrk--6"><div class="textblock"><div class="image"><div drawio-diagram="2865"><img src="https://doc316en.candera.eu/uploads/images/drawio/2023-02/drawing-4-1677559372.png" alt=""/></div>

</div></div></div>