ImageProviderRequest Class
Contains details about a request made to the GetImageSource(IImage, 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.
public Color? BackgroundColor { get; set; }
Property Value
- Color?
ForegroundColor
The owner control's foreground color, which can be swapped in for the DesignForegroundColor.
public Color? ForegroundColor { get; set; }
Property Value
- Color?
Remarks
The color value returned by this property is also the opaque color used for monochrome adaptation.
See Also
Source
The source of the request, which is often a DynamicImage instance.
ThemeVariant
The theme variant.
public ThemeVariant? ThemeVariant { get; set; }
Property Value
- ThemeVariant
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.
See Also
Inherited Members
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()