HighContrastConfig

class HighContrastConfig

Configuration struct for HighContrastFilter.

Provides transformations to improve contrast for users with low vision.

Classes

InvertStyle

Members:

Methods

__init__

Overloaded function.

isValid

Attributes

fContrast

fGrayscale

fInvertStyle

kInvertBrightness

kInvertLightness

kLast

kNoInvert

Methods

HighContrastConfig.__init__(*args, **kwargs)

Overloaded function.

  1. __init__(self: skia.HighContrastConfig) -> None

  2. __init__(self: skia.HighContrastConfig, grayscale: bool, invertStyle: skia.HighContrastConfig.InvertStyle, contrast: float) -> None

HighContrastConfig.isValid(self: skia.HighContrastConfig) bool

Attributes

HighContrastConfig.fContrast
HighContrastConfig.fGrayscale
HighContrastConfig.fInvertStyle
HighContrastConfig.kInvertBrightness = <InvertStyle.kInvertBrightness: 1>
HighContrastConfig.kInvertLightness = <InvertStyle.kInvertLightness: 2>
HighContrastConfig.kLast = <InvertStyle.kInvertLightness: 2>
HighContrastConfig.kNoInvert = <InvertStyle.kNoInvert: 0>