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