Este artigo foi traduzido por máquina. Para visualizar o arquivo em inglês, marque a caixa de seleção Inglês. Você também pode exibir o texto Em inglês em uma janela pop-up, movendo o ponteiro do mouse sobre o texto.
|
Tradução
Inglês
|
Propriedade GradientBrush.ColorInterpolationMode
.NET Framework (current version)
![]() |
---|
The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience. |
Assembly: PresentationCore (em PresentationCore.dll)
Valor da Propriedade
Type: System.Windows.Media.ColorInterpolationMode<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <StackPanel> <Rectangle Width="200" Height="100" Margin="10"> <Rectangle.Fill> <!-- This gradient uses a ColorInterpolationMode of "ScRgbLinearInterpolation" which indicates that the colors of the gradient are interpolated using the ScRGB color space. --> <LinearGradientBrush ColorInterpolationMode="ScRgbLinearInterpolation" StartPoint="0,0.5" EndPoint="1,0.5"> <LinearGradientBrush.GradientStops> <GradientStop Color="Blue" Offset="0.0" /> <GradientStop Color="Red" Offset="0.25" /> <GradientStop Color="Blue" Offset="0.75" /> <GradientStop Color="LimeGreen" Offset="1" /> </LinearGradientBrush.GradientStops> </LinearGradientBrush> </Rectangle.Fill> </Rectangle> <Rectangle Width="200" Height="100" Margin="10"> <Rectangle.Fill> <!-- This gradient uses a ColorInterpolationMode of "SRgbLinearInterpolation" which indicates that the colors of the gradient are interpolated using the sRGB color space. --> <LinearGradientBrush ColorInterpolationMode="SRgbLinearInterpolation" StartPoint="0,0.5" EndPoint="1,0.5"> <LinearGradientBrush.GradientStops> <GradientStop Color="Blue" Offset="0.0" /> <GradientStop Color="Red" Offset="0.25" /> <GradientStop Color="Blue" Offset="0.75" /> <GradientStop Color="LimeGreen" Offset="1" /> </LinearGradientBrush.GradientStops> </LinearGradientBrush> </Rectangle.Fill> </Rectangle> </StackPanel> </Page>

.NET Framework
Disponível desde 3.0
Silverlight
Disponível desde 2.0
Windows Phone Silverlight
Disponível desde 7.0
Disponível desde 3.0
Silverlight
Disponível desde 2.0
Windows Phone Silverlight
Disponível desde 7.0
Mostrar: