ImageProviderRequest Class
Contains details about a request made to the GetImageSource(ImageSource, ImageProviderRequest) method.
public class ImageProviderRequest
- Inheritance:
- object object
Constructors
ImageProviderRequest()
Initializes an instance of the class.
public ImageProviderRequest()
Properties
BackgroundColor
The owner control's background color when applying chromatic adaptation.
ForegroundColor
The owner control's foreground color, which can be swapped in for the DesignForegroundColor.
public Color? ForegroundColor { get; set; }
Property Value
Remarks
The color value returned by this property is also the opaque color used for monochrome adaptation.
See Also
Scale
The owner control's scale (e.g. 2.0 means 200% DPI) factor.
Source
The source of the request, which is often a DynamicImage instance.
ThemeName
The theme name.
UseGrayscale
Whether to use grayscale for the resulting image, such as when the owner control is disabled.
public bool UseGrayscale { get; set; }
Property Value
- bool:
true
if grayscale should be used for the resulting image; otherwise,false
.
Remarks
Grayscale is applied after any chromatic adaptations.
UseMonochrome
Whether to convert the image to a single color.
public bool UseMonochrome { get; set; }
Property Value
- bool:
true
if the image should be converted to a single color; otherwise,false
.
Remarks
The MonochromeBrightnessThreshold property is used to determine the brightness cutoff of which colors result in being transparent instead of single-color opaque.