87 references to A
Microsoft.VisualStudio.LanguageServices (1)
VSWpfThemeService.cs (1)
36return Color.FromArgb(color.A, color.R, color.G, color.B);
System.ComponentModel.TypeConverter (4)
System\Drawing\ColorConverter.cs (4)
79if (c.A < 255) 82args[nArg++] = intConverter.ConvertToString(context, culture, (object)c.A); 109else if (c.A != 255) 112args = new object[] { c.A, c.R, c.G, c.B };
System.Drawing.Common.Tests (53)
Helpers.cs (1)
82stringBuilder.Append($"Color.FromArgb({color.A}, {color.R}, {color.G}, {color.B})");
mono\System.Drawing.Imaging\GifCodecTests.cs (2)
171Assert.Equal(255, c.A); 209Assert.Equal(255, color.A);
mono\System.Drawing.Imaging\JpegCodecTests.cs (2)
76Assert.Equal(0xFF, c.A); 369Assert.Equal(0xFF, color.A);
mono\System.Drawing\BitmapTests.cs (24)
162Assert.Equal(255, c.A); 175Assert.Equal(255, d.A); 192Assert.Equal(a.A, c.A); 198Assert.Equal(b.A, d.A); 223Assert.Equal(Math.Ceiling((float)c.B * c.A / 255), data[0]); 224Assert.Equal(Math.Ceiling((float)c.G * c.A / 255), data[1]); 225Assert.Equal(Math.Ceiling((float)c.R * c.A / 255), data[2]); 226Assert.Equal(c.A, data[3]); 227Assert.Equal(Math.Ceiling((float)d.B * d.A / 255), data[4]); 228Assert.Equal(Math.Ceiling((float)d.G * d.A / 255), data[5]); 229Assert.Equal(Math.Ceiling((float)d.R * d.A / 255), data[6]); 230Assert.Equal(d.A, data[7]); 266Assert.Equal(c.A, data[n++]); 271Assert.Equal(d.A, data[n++]); 671Color red = Color.FromArgb(Color.Red.A, Color.Red.R, Color.Red.G, Color.Red.B); 672Color blue = Color.FromArgb(Color.Blue.A, Color.Blue.R, Color.Blue.G, Color.Blue.B); 690pixel_colour = Color.FromArgb(red.A, pixel_colour.R, pixel_colour.G, pixel_colour.B); 697Marshal.WriteByte(data.Scan0, 3, blue.A); 704pixel_colour = Color.FromArgb(red.A, pixel_colour.R, pixel_colour.G, pixel_colour.B); 716Marshal.WriteByte(data.Scan0, 3, blue.A); 723pixel_colour = Color.FromArgb(blue.A, pixel_colour.R, pixel_colour.G, pixel_colour.B); 739pixel_colour = Color.FromArgb(red.A, r, g, b);
System\Drawing\BitmapTests.cs (22)
1296Assert.Equal(255, c.A); 1309Assert.Equal(255, d.A); 1326Assert.Equal(a.A, c.A); 1331Assert.Equal(b.A, d.A); 1355Assert.Equal(Math.Ceiling((float)c.B * c.A / 255), data[0]); 1356Assert.Equal(Math.Ceiling((float)c.G * c.A / 255), data[1]); 1357Assert.Equal(Math.Ceiling((float)c.R * c.A / 255), data[2]); 1358Assert.Equal(c.A, data[3]); 1359Assert.Equal(Math.Ceiling((float)d.B * d.A / 255), data[4]); 1360Assert.Equal(Math.Ceiling((float)d.G * d.A / 255), data[5]); 1361Assert.Equal(Math.Ceiling((float)d.R * d.A / 255), data[6]); 1362Assert.Equal(d.A, data[7]); 1402Assert.Equal(c.A, data[n++]); 1417Assert.Equal(d.A, data[n++]); 1484pixelColor = Color.FromArgb(red.A, pixelColor.R, pixelColor.G, pixelColor.B); 1491Marshal.WriteByte(data.Scan0, 3, blue.A); 1498pixelColor = Color.FromArgb(red.A, pixelColor.R, pixelColor.G, pixelColor.B); 1510Marshal.WriteByte(data.Scan0, 3, blue.A); 1517pixelColor = Color.FromArgb(blue.A, pixelColor.R, pixelColor.G, pixelColor.B); 1533Assert.Equal(red, Color.FromArgb(red.A, r, g, b));
System\Drawing\IconTests.cs (2)
737Assert.Equal(e.A, a.A);
System.Drawing.Primitives (2)
System\Drawing\Color.cs (2)
387private string NameAndARGBValue => $"{{Name = {Name}, ARGB = ({A}, {R}, {G}, {B})}}"; 574(state & StateValueMask) != 0 ? $"{nameof(Color)} [A={A}, R={R}, G={G}, B={B}]" :
System.Windows.Forms (18)
System\Windows\Forms\Control.cs (6)
810if (!value.Equals(Color.Empty) && !GetStyle(ControlStyles.SupportsTransparentBackColor) && value.A < 255) 1616if (color.A != 0) 1622while (color.A == 0) 2392private bool IsValidBackColor(Color c) => c.IsEmpty || GetStyle(ControlStyles.SupportsTransparentBackColor) || c.A == 255; 2776=> GetStyle(ControlStyles.SupportsTransparentBackColor) && BackColor.A < 255; 2779=> GetStyle(ControlStyles.SupportsTransparentBackColor) && c.A < 255;
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (1)
27buttonBorderShadowColor.A,
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
1017if (value.A < 255) 2642if (value.A < 255)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxEditingControl.cs (1)
74if (dataGridViewCellStyle.BackColor.A < 255)
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxEditingControl.cs (1)
99if (dataGridViewCellStyle.BackColor.A < 255)
System\Windows\Forms\Controls\ImageList\ImageList.cs (2)
262private bool UseTransparentColor => TransparentColor.A > 0; 304if (transparent.A > 0)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
69=> Color.FromArgb(color.A, (byte)~color.R, (byte)~color.G, (byte)~color.B);
System\Windows\Forms\Controls\ToolStrips\ProfessionalColorTable.cs (2)
292int newAlpha = (src.A * alpha + (255 - alpha) * dest.A) / 255;
System\Windows\Forms\Rendering\ControlPaint.cs (2)
2451Debug.Assert(replaceBlack.A == 255); 2452Debug.Assert(replaceWhite.A == 255);
System.Windows.Forms.Design (4)
System\Drawing\Design\ColorEditor.StandardColorComparer.cs (4)
18if (left.A < right.A) 23if (left.A > right.A)
System.Windows.Forms.Primitives (2)
System\Windows\Forms\SystemDrawingExtensions.cs (2)
41internal static bool HasTransparency(this Color color) => color.A != byte.MaxValue; 46internal static bool IsFullyTransparent(this Color color) => color.A == 0;
System.Windows.Forms.UI.IntegrationTests (2)
PropertyGridTests.cs (2)
374_propertyGrid.CommandsLinkColor.A.Should().Be(255); 395_propertyGrid.CommandsDisabledLinkColor.A.Should().Be(255);
WindowsFormsIntegration (1)
System\Windows\Integration\ElementHost.cs (1)
1548if (control.BackColor != SD.Color.Empty && control.BackColor.A == 255)