1 write to _imageEffectEmulation
PresentationCore (1)
Core\CSharp\System\Windows\Media\Effects\DropShadowBitmapEffect.cs (1)
87
_imageEffectEmulation
= new DropShadowEffect();
23 references to _imageEffectEmulation
PresentationCore (23)
Core\CSharp\System\Windows\Media\Effects\DropShadowBitmapEffect.cs (23)
80
if (
_imageEffectEmulation
!= null &&
_imageEffectEmulation
.IsFrozen)
82
return
_imageEffectEmulation
;
85
if (
_imageEffectEmulation
== null)
91
if (
_imageEffectEmulation
.Color != color)
93
_imageEffectEmulation
.Color = color;
99
if (
_imageEffectEmulation
.ShadowDepth != shadowDepth)
103
_imageEffectEmulation
.ShadowDepth = 50.0;
107
_imageEffectEmulation
.ShadowDepth = 0.0;
111
_imageEffectEmulation
.ShadowDepth = shadowDepth;
116
if (
_imageEffectEmulation
.Direction != direction)
118
_imageEffectEmulation
.Direction = direction;
122
if (
_imageEffectEmulation
.Opacity != opacity)
126
_imageEffectEmulation
.Opacity = 1.0;
130
_imageEffectEmulation
.Opacity = 0.0;
134
_imageEffectEmulation
.Opacity = opacity;
139
if (
_imageEffectEmulation
.BlurRadius / _MAX_EMULATED_BLUR_RADIUS != softness)
143
_imageEffectEmulation
.BlurRadius = _MAX_EMULATED_BLUR_RADIUS;
147
_imageEffectEmulation
.BlurRadius = 0.0;
151
_imageEffectEmulation
.BlurRadius = _MAX_EMULATED_BLUR_RADIUS * softness;
155
_imageEffectEmulation
.RenderingBias = RenderingBias.Performance;
159
_imageEffectEmulation
.Freeze();
162
return
_imageEffectEmulation
;