---
title: "RedEyeRemoval Class"
canonical: https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_RedEyeRemoval.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# RedEyeRemoval Class
 
This class represents red eye effect removal transform.
 
**Namespace:** [Aurigma.GraphicsMill.Transforms](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Transforms.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public NotInheritable Class RedEyeRemoval _Inherits BitmapTransform
```
 
```csharp
public sealed class RedEyeRemoval : BitmapTransform
```
 
## Remarks
  
Using this class you can add red eye effect removal into your application. It supports two modes: [Manual](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_RedEyeRemovalMode.htm.md) and [Semiautomatic](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_RedEyeRemovalMode.htm.md). You specify the mode using the [Mode](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_RedEyeRemoval_Mode.htm.md) property.
 
When you use the [Manual](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_RedEyeRemovalMode.htm.md) mode, the user removes red eyes effect in two steps:
 
1. Select the face of the person whose eyes should be processed. The selection should be specified by the [FaceRegion](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_RedEyeRemoval_FaceRegion.htm.md) property.
2. Specify red eyes coordinates on the selected face (e.g. by mouse click). It is specified by the [EyePoint](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_RedEyeRemoval_EyePoint.htm.md) property.

The [Semiautomatic](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_RedEyeRemovalMode.htm.md) mode also requires the user to select a face. However it automatically searches red eyes on the selected face. When this mode is used, you can get the coordinates of red eyes found by the algorithm with a help of the [Mask](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_RedEyeRemoval_Mask.htm.md) property. This way if the algorithm mistakes, you can display the user what was found and possible give them an opportunity to fix it manually. See the [RedEyeMask](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_RedEyeMask.htm.md) and [RedEyeBlob](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_RedEyeBlob.htm.md) classes description for more details on this.
 
If you are not happy with results, you can play with sensitivity of the algorithm. Try to reduce the [RedChannelThreshold](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_RedEyeRemoval_RedChannelThreshold.htm.md) property slightly. In the [Manual](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_RedEyeRemovalMode.htm.md) mode you can play with additional property, namely [Sensitivity](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_RedEyeRemoval_Sensitivity.htm.md).
 
**Note** 
Both modes analyzes facial features when deciding what red pixels should be suppressed and what ones shold not. This way the algorithm reduces probability of malfunction (i.e. mistake reddish areas of the face or background for red eyes). The more precise the user selects the face, the more accurate red eye effect removal will be. Also, if the user works in the [Manual](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_RedEyeRemovalMode.htm.md) mode, they need try to click inside the red area of an eye. If the user clicks, say, white area of the flash reflection, the algorithm will not be able to fix red eye effect.
 
## Inheritance Hierarchy
  
- [System.Object](http://msdn2.microsoft.com/en-us/e5kfa45b)
    - [Aurigma.GraphicsMill.SyncHandler](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_SyncHandler.htm.md)
        - [Aurigma.GraphicsMill.UnitConverterHandler](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_UnitConverterHandler.htm.md)
            - [Aurigma.GraphicsMill.Transforms.BitmapTransform](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_BitmapTransform.htm.md)
                - Aurigma.GraphicsMill.Transforms.RedEyeRemoval
 
## Thread Safety
 Static members of this type are safe for multi-threaded operations. Instance members of this type are safe for multi-threaded operations.
 
## Object Model

[![](https://www.graphicsmill.com/docs/gm5/Aurigma.GraphicsMill_ObjectModel_294.png)](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_RedEyeRemoval.htm.md)
![](https://www.graphicsmill.com/docs/gm5/ObjectModel1.png)[![](https://www.graphicsmill.com/docs/gm5/Aurigma.GraphicsMill_ObjectModel_295.png)](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_RedEyeMask.htm.md)
 
## Supported Pixel Formats

| Member Name | Description |
| --- | --- |
| **Format24bppRgb** | 24 bits per pixel. RGB. 8 bits each are used for the red, green, and blue components. |
| **Format32bppRgb** | 32 bits per pixel. RGB. 8 bits each are used for the red, green, and blue components. The rest 8 bits are unused. |
| **Format32bppArgb** | 32 bits per pixel. RGB with alpha channel. 8 bits each are used for the alpha, red, green, and blue components. |
| **Format48bppRgb** | 48 bits per pixel. RGB. 16 bits each are used for the red, green, and blue components (extended pixel format). |
| **Format64bppArgb** | 64 bits per pixel. RGB with alpha channel. 16 bits each are used for the alpha, red, green, and blue components (extended pixel format). |
 
## See Also

### Reference

- [RedEyeRemoval Members](https://www.graphicsmill.com/docs/gm5/AllMembers_T_Aurigma_GraphicsMill_Transforms_RedEyeRemoval.htm.md)
- [Aurigma.GraphicsMill.Transforms Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Transforms.htm.md)
