Table of Contents

Method RecolorForDarkModeIfRequired

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

RecolorForDarkModeIfRequired(bool)

Returns a version of the image recolored for dark mode if required. Returns original image if dark mode is not required.

public Bitmap RecolorForDarkModeIfRequired(bool isDark)

Parameters

isDark bool

A value indicating whether dark mode is enabled. If true, the image will be recolored for dark mode; otherwise, the original image is returned.

Returns

Bitmap

An image recolored for dark mode if isDark is true; otherwise, the original image.