ThemedImageConverter Class
Microsoft internal use only. Converts an input ImageSource into an Image control whose Source blends in with the target background.
Assembly: Microsoft.VisualStudio.Imaging (in Microsoft.VisualStudio.Imaging.dll)
Microsoft.VisualStudio.PlatformUI.MultiValueConverterBase<TTarget>
Microsoft.VisualStudio.PlatformUI.MultiValueConverter<T1, T2, T3, TTarget>
Microsoft.VisualStudio.PlatformUI.ThemedImageConverter
| Name | Description | |
|---|---|---|
![]() | ThemedImageConverter() | Microsoft internal use only. |
| Name | Description | |
|---|---|---|
![]() | Convert(Object[], Type, Object, CultureInfo) | Microsoft internal use only.(Inherited from MultiValueConverter<T1, T2, T3, TTarget>.) |
![]() | ConvertBack(Object, Type[], Object, CultureInfo) | Microsoft internal use only.(Inherited from MultiValueConverter<T1, T2, T3, TTarget>.) |
![]() | Equals(Object) | (Inherited from Object.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | ToString() | (Inherited from Object.) |
This converter performs two conversions:
If the inputs are a source BitmapSource, the target background color, and a bool indicating whether or not he image should have an enabled appearance, based on these inputs, the following transformations are performed:
The luminosity of the image is transformed so that the constant "halo" luminosity blends in with the background. This has the effect of eliminating the halo visually. The "halo" luminosity is an immutable constant, and is not calculated from the input image.
The image is converted to grayscale if the isEnabled parameter is false. This uses the parameter (optional), which should be a biasColor used during grayscale transformation. If the parameter is not specified, White is used as the bias color.
If the input cannot be converted to a BitmapSource, no image manipulation is performed and the ImageSource is used directly as the Source of the resulting Image control.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
