ImageProviderRequest Class
Contains details about a request made to the GetImageSource(ImageSource, ImageProviderRequest) method.
public class ImageProviderRequest
- Inheritance:
- Object Object
Constructors
ImageProviderRequest()
public ImageProviderRequest()
Properties
BackgroundColor
Gets or sets the owner control's background color when applying chromatic adaptation.
public Color? BackgroundColor { get; set; }
Property Value
ForegroundColor
Gets or sets the owner control's foreground color, which can be swapped in for the DesignForegroundColor.
public Color? ForegroundColor { get; set; }
Property Value
- Nullable<Color>:
The owner control's foreground color, which can be swapped in for the DesignForegroundColor.
Remarks
The color value returned by this property is also the opaque color used for monochrome adaptation.
See Also
Scale
Gets or sets the owner control's scale (e.g. 2.0 means 200% DPI) factor.
public double Scale { get; set; }
Property Value
- Double:
The owner control's scale (e.g. 2.0 means 200% DPI) factor.
ThemeName
Gets or sets the theme name.
UseGrayscale
Gets or sets whether to use grayscale for the resulting image, such as when the owner control is disabled.
public bool UseGrayscale { get; set; }
Property Value
- Boolean:
true
if grayscale should be used for the resulting image; otherwise,false
.
Remarks
Grayscale is applied after any chromatic adaptations.
UseMonochrome
Gets or sets whether to convert the image to a single color.
public bool UseMonochrome { get; set; }
Property Value
- Boolean:
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.