6 writes to Alpha
Microsoft.Maui.Graphics (6)
Color.cs (6)
42 Alpha = alpha.Clamp(0, 1); 50 Alpha = 1.0f; 58 Alpha = (alpha / 255f).Clamp(0, 1); 66 Alpha = 1.0f; 74 Alpha = (alpha / 255f).Clamp(0, 1); 82 Alpha = color.W.Clamp(0, 1);
41 references to Alpha
Microsoft.Maui (2)
Animations\AnimationLerpingExtensions.cs (2)
16 var a = Lerp(color.Alpha, endColor.Alpha, progress);
Microsoft.Maui.Controls (6)
Compatibility\Handlers\NavigationPage\iOS\NavigationRenderer.cs (2)
740 if (barBackgroundColor?.Alpha < 1f) 761 if (barBackgroundColor?.Alpha == 0f)
Compatibility\Handlers\Shell\iOS\ShellNavBarAppearanceTracker.cs (3)
99 if (appearance.BackgroundColor?.Alpha < 1.0f) 139 if (appearance.BackgroundColor?.Alpha == 0f) 160 navBar.Translucent = appearance.BackgroundColor?.Alpha < 1.0f;
Platform\iOS\ControlsModalWrapper.cs (1)
36 if (modalBkgndColor?.Alpha < 1)
Microsoft.Maui.Controls.Build.Tasks (1)
CompiledConverters\ColorTypeConverter.cs (1)
30 yield return Instruction.Create(OpCodes.Ldc_R4, color.Alpha);
Microsoft.Maui.Controls.Compatibility (1)
iOS\Shapes\ShapeRenderer.cs (1)
553 colors[index] = new CGColor(new nfloat(color.Red), new nfloat(color.Green), new nfloat(color.Blue), new nfloat(color.Alpha));
Microsoft.Maui.Graphics (22)
Color.cs (15)
87 return $"[Color: Red={Red}, Green={Green}, Blue={Blue}, Alpha={Alpha}]"; 97 hashcode = (hashcode * 397) ^ Alpha.GetHashCode(); 113 if (includeAlpha || Alpha < 1) 114 return "#" + ToHex(Alpha) + ToHex(Red) + ToHex(Green) + ToHex(Blue); 126 if (includeAlpha || Alpha < 1) 127 return "#" + ToHex(Alpha) + ToHex(Red) + ToHex(Green) + ToHex(Blue); 134 if (includeAlpha || Alpha < 1) 135 return "#" + ToHex(Red) + ToHex(Green) + ToHex(Blue) + ToHex(Alpha); 153 if (Math.Abs(alpha - Alpha) < GeometryUtil.Epsilon) 161 return new Color(Red, Green, Blue, Alpha * multiplyBy); 188 a = (byte)(Alpha * 255f); 211 return FromHsla(h, s, l, Alpha); 217 return FromHsla(h, s, luminosity, Alpha); 229 return FromHsla(h, saturation, l, Alpha); 241 return FromHsla(hue, s, l, Alpha);
GradientPaint.cs (3)
106 if (stop.Color != null && stop.Color.Alpha < 1) 253 var a = GeometryUtil.GetLinearValue(startColor.Alpha, endColor.Alpha, factor);
PaintPattern.cs (1)
22 if (Paint.BackgroundColor != null && Paint.BackgroundColor.Alpha > 1)
PatternPaint.cs (2)
26 if (BackgroundColor == null || BackgroundColor.Alpha < 1) 29 return ForegroundColor.Alpha < 1;
SolidPaint.cs (1)
20 return Color.Alpha < 1;
Microsoft.Maui.Graphics.Skia (7)
SKColorExtensions.cs (1)
12 var a = (byte)(target.Alpha * 255f * alpha);
SKGraphicsExtensions.cs (4)
15 var a = (byte)(target.Alpha * alpha * 255f); 26 var a = (int)(target.Alpha * 255f); 37 var a = (int)(target.Alpha * 255f * alpha); 51 var a = (byte)(target.Alpha * 255f);
SkiaCanvasState.cs (2)
298 var a = (byte)(_strokeColor.Alpha * 255f * Alpha); 314 var a = (byte)(_fillColor.Alpha * 255f * Alpha);
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (2)
src\Graphics\src\Graphics\Platforms\Windows\GraphicsExtensions.cs (2)
40 var a = (byte)(finalColor.Alpha * 255 * alpha); 61 var a = (byte)(color.Alpha * 255 * alpha);