Table of Contents

Method RecolorForDarkMode

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

RecolorForDarkMode()

Creates a version of the image optimized for display in dark mode environments by adjusting its colors for improved visibility and aesthetics.

public virtual Bitmap RecolorForDarkMode()

Returns

Bitmap

An Image instance representing the recolored image suitable for dark mode. The returned image preserves the original transparency.

Remarks

This method applies lighter color transformations to enhance the image's appearance against dark backgrounds. If a custom recoloring override is provided, it will be used instead of the default transformation.