Equalize modifies an image to ensure that all levels of brightness are equally well represented. This function is very similar to the AutoLevels effect but is designed to modify brightness rather than color levels.

Syntax

[C#]

static void Equalize(Bitmap bitmap);

[Visual Basic]

Shared Sub Equalize(bitmap As Bitmap)
Params
Name Description
bitmap The bitmap to process
Notes

None.

Example

[C#]using (Bitmap bm = (Bitmap)Bitmap.FromFile(Server.MapPath("rez/joel-filipe-_AjqGGafofE-unsplash.jpg"))) {
  Effects.Equalize(bm);
  bm.Save(Server.MapPath("IG8_Effects_Equalize.jpg"));
}


Here we apply an auto-levels effect with different clip levels. Ouput files are shown below.


joel-filipe-_AjqGGafofE-unsplash.jpg


IG8_Effects_AutoLevels1.jpg


IG8_Effects_AutoLevels2.jpg