Edit

Share via


SKHighContrastConfig Struct

Definition

High contrast configuration settings for use with CreateHighContrast(SKHighContrastConfig).

public struct SKHighContrastConfig : IEquatable<SkiaSharp.SKHighContrastConfig>
Inheritance
SKHighContrastConfig
Implements

Constructors

Name Description
SKHighContrastConfig(Boolean, SKHighContrastConfigInvertStyle, Single)

Creates a new instance of SKHighContrastConfig.

Fields

Name Description
Default

Gets a new instance with the values set to the defaults.

Properties

Name Description
Contrast

Gets or sets the amount to adjust the contrast by, in the range -1.0 through 1.0.

Grayscale

Gets or sets a value indicating whether the color will be converted to grayscale.

InvertStyle

Gets or sets a value indicating whether to invert brightness, lightness, or neither.

IsValid

Gets a value indicating if the configuration is valid.

Methods

Name Description
Equals(Object)

Determines whether the specified object is equal to this instance.

Equals(SKHighContrastConfig)

Determines whether the specified SKHighContrastConfig is equal to this instance.

GetHashCode()

Returns a hash code for this instance.

Operators

Name Description
Equality(SKHighContrastConfig, SKHighContrastConfig)

Determines whether two SKHighContrastConfig instances are equal.

Inequality(SKHighContrastConfig, SKHighContrastConfig)

Determines whether two SKHighContrastConfig instances are not equal.

Applies to