SKColorFilter.CreateHighContrast Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateHighContrast(SKHighContrastConfig) |
Creates a new high contrast color filter which provides transformations to improve contrast for users with low vision. |
CreateHighContrast(Boolean, SKHighContrastConfigInvertStyle, Single) |
Creates a new high contrast color filter which provides transformations to improve contrast for users with low vision. |
CreateHighContrast(SKHighContrastConfig)
Creates a new high contrast color filter which provides transformations to improve contrast for users with low vision.
public static SkiaSharp.SKColorFilter CreateHighContrast (SkiaSharp.SKHighContrastConfig config);
Parameters
- config
- SKHighContrastConfig
The high contrast configuration settings.
Returns
Returns the new SKColorFilter.
Remarks
Applies the following transformations in this order: conversion to grayscale, color inversion, increasing the resulting contrast.
Applies to
CreateHighContrast(Boolean, SKHighContrastConfigInvertStyle, Single)
Creates a new high contrast color filter which provides transformations to improve contrast for users with low vision.
public static SkiaSharp.SKColorFilter CreateHighContrast (bool grayscale, SkiaSharp.SKHighContrastConfigInvertStyle invertStyle, float contrast);
Parameters
- grayscale
- Boolean
Whether or not the color will be converted to grayscale.
- invertStyle
- SKHighContrastConfigInvertStyle
Whether or not to invert brightness, lightness, or neither.
- contrast
- Single
The amount to adjust the contrast by, in the range -1.0 through 1.0.
Returns
Returns the new SKColorFilter.
Remarks
Applies the following transformations in this order: conversion to grayscale, color inversion, increasing the resulting contrast.
Applies to
Обратная связь
https://aka.ms/ContentUserFeedback.
Ожидается в ближайшее время: в течение 2024 года мы постепенно откажемся от GitHub Issues как механизма обратной связи для контента и заменим его новой системой обратной связи. Дополнительные сведения см. в разделеОтправить и просмотреть отзыв по