ColorExtensions Class

KGy SOFT Drawing Libraries Help
Contains extension methods for the Color32 struct.
Inheritance Hierarchy

SystemObject
  KGySoft.Drawing.ImagingColorExtensions

Namespace:  KGySoft.Drawing.Imaging
Assembly:  KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 7.0.0-preview.2
Syntax

public static class ColorExtensions

The ColorExtensions type exposes the following members.

Methods

  NameDescription
Public methodStatic memberBlend
Blends the specified foreColor and backColor. It returns foreColor if it has no transparency (that is, when A is 255); otherwise, the result of the blending.
Public methodStatic memberGetBrightness
Gets the brightness of a Color32 instance as a byte based on human perception. The A component of the specified value is ignored.
Public methodStatic memberTolerantEquals
Gets whether two Color32 instances are equal using a specified tolerance.
Top
See Also

Reference