Image and Photo Filters

Alpha blending image filter

         Despite the vast possibilities offered by modern computer graphics, it's becoming progressively challenging to captivate users in the online realm. However, images that exhibit not only mastery but also ingenuity have the potential to generate maximum traffic to a webpage. For instance, achieving a misty photo effect in a landscape doesn't necessitate acquiring paints; employing alpha blending image filter is sufficient.

         Beyond artistic applications, alpha blending image filter serves a crucial role in watermarking images. Through alpha blending, you can not only establish the author's ownership but also promote the identity of an individual or a company. In the image example below, we've positioned a semi-transparent Aspose logo onto the original document.

Source image
Resulting image
Original image without watermark
Alpha blending filter with logo overlay
Alpha blending image filter with logo overlay image

Example C# code: alpha blending

Magic Wand tool

         Working with images and photos often involves operations such as selecting a specific color area to adjust or replace with another. Without a tool like the Magic Wand, graphic designers would face extreme difficulty in selecting areas with complex outlines or multiple areas sharing a similar color. With the Magic Wand, you can simply choice on a point within a single-color area, and the tool will automatically select the entire area around it that shares a similar color.

Source image
Resulting image
Original image before magic wand
Magic wand tool light-blue color selection
Magic Wand tool: light-blue color selection

         You can adjust the degree of color similarity by setting a threshold for color comparison. The areas selected using this method can be combined, subtracted from one another, or have the selection inverted. Feathering can also be applied to the edges of the areas to achieve a smooth transition. In the example shown in the image below, we selected the green background area around the shape, added yellow specks to the selection, and then removed the resulting mask from the original image. As a result, we will obtain a figure without a background, which can then be used for creating other graphic works.

Source image
Resulting image
Original image before magic wand
Magic wand tool green background color selection
Magic Wand tool: green background color selection

Example C# code: magic wand

Remove watermark image filter

         Certain smartphones and cameras can add watermarks to photos as they capture them. These watermarks can include manufacturer logos or device model names. If you need to share these photos without these unwanted marks, you can use the Watermark Removal image filter.

         To effectively remove these watermarks, you need to define the area where the mark is located by indicating its coordinates. Utilizing the available image data, the algorithm will automatically replace the watermark area with similar fragments. In the image filter options, you can choose between the `Content-Aware Fill` or the `Telea` watermark removal algorithm. Furthermore, you can specify the number of attempts to remove the watermark. In this scenario, the algorithm will determine the best result.

Source image
Resulting image
Original image before removal
Image after watemark removal
Watermark removal filter example

Example C# code: remove watermark