57 public static IEqualityComparer<DrawingOptions>
Comparer {
get; } =
new DrawingOptionsEqualityComparer();
68 return $
"Color: ({Color}), Opacity: {Opacity}";
79 internal Backend.Types.peak_icv_drawing_options ToCType()
81 return new Backend.Types.peak_icv_drawing_options
84 opacity = Opacity.Value
88 private sealed class DrawingOptionsEqualityComparer : IEqualityComparer<DrawingOptions>
92 if (ReferenceEquals(x, y))
97 if (ReferenceEquals(x,
null))
102 if (ReferenceEquals(y,
null))
Class holding color codes.
ulong ColorCode
The color code.
static IEqualityComparer< Color > Comparer
A default equality comparer for comparing Color data values.
Represents the drawing options used by the Painter for rendering.
DrawingOptions(Color color, Opacity opacity)
Constructs DrawingOptions with specified values for color and opacity .
DrawingOptions()
Constructs DrawingOptions with default values.
Color Color
Color used for drawing. Defaults to ColorConstant.Red.
static IEqualityComparer< DrawingOptions > Comparer
Default equality comparer for comparing DrawingOptions data values.
Opacity Opacity
The opacity level used for drawing. Defaults to 100 (fully opaque).
override string ToString()
Returns a string representation of this DrawingOptions instance.
Holds an opacity value representing the transparency level of an object or pixel.
static IEqualityComparer< Opacity > Comparer
A default equality comparer for comparing Opacity data values.
ColorConstant
Enum class for color constants.