76 references to B
Microsoft.VisualStudio.LanguageServices (1)
VSWpfThemeService.cs (1)
36return Color.FromArgb(color.A, color.R, color.G, color.B);
System.ComponentModel.TypeConverter (3)
System\Drawing\ColorConverter.cs (3)
92args[nArg++] = intConverter.ConvertToString(context, culture, (object)c.B); 112args = new object[] { c.A, c.R, c.G, c.B }; 122args = new object[] { c.R, c.G, c.B };
System.Drawing.Common.Tests (46)
Helpers.cs (1)
82stringBuilder.Append($"Color.FromArgb({color.A}, {color.R}, {color.G}, {color.B})");
mono\System.Drawing.Imaging\GifCodecTests.cs (2)
174Assert.Equal(i, c.B); 212Assert.Equal(0, color.B);
mono\System.Drawing.Imaging\JpegCodecTests.cs (2)
79Assert.Equal(i, c.B); 368Assert.True(color.B < 60);
mono\System.Drawing\BitmapTests.cs (21)
173Assert.Equal(16, c.B); 186Assert.Equal(24, d.B); 196Assert.Equal(a.B - 1, c.B); 202Assert.Equal(b.B - 1, d.B); 223Assert.Equal(Math.Ceiling((float)c.B * c.A / 255), data[0]); 227Assert.Equal(Math.Ceiling((float)d.B * d.A / 255), data[4]); 260Assert.Equal(c.B, data[n++]); 267Assert.Equal(d.B, data[n++]); 385pixels[index++] = clr.B; 496pixels[index++] = clr.B; 674Color red = Color.FromArgb(Color.Red.A, Color.Red.R, Color.Red.G, Color.Red.B); 675Color blue = Color.FromArgb(Color.Blue.A, Color.Blue.R, Color.Blue.G, Color.Blue.B); 693pixel_colour = Color.FromArgb(red.A, pixel_colour.R, pixel_colour.G, pixel_colour.B); 697Marshal.WriteByte(data.Scan0, 0, blue.B); 707pixel_colour = Color.FromArgb(red.A, pixel_colour.R, pixel_colour.G, pixel_colour.B); 716Marshal.WriteByte(data.Scan0, 0, blue.B); 726pixel_colour = Color.FromArgb(blue.A, pixel_colour.R, pixel_colour.G, pixel_colour.B); 745Marshal.WriteByte(data.Scan0, 0, blue.B); 760Marshal.WriteByte(data.Scan0, 0, blue.B);
System\Drawing\BitmapTests.cs (18)
390Assert.Equal(Color.FromArgb(255, expectedColor.R, expectedColor.G, expectedColor.B), clone.GetPixel(x, y)); 1307Assert.Equal(16, c.B); 1320Assert.Equal(24, d.B); 1329Assert.Equal(a.B - 1, c.B); 1334Assert.Equal(b.B - 1, d.B); 1355Assert.Equal(Math.Ceiling((float)c.B * c.A / 255), data[0]); 1359Assert.Equal(Math.Ceiling((float)d.B * d.A / 255), data[4]); 1391Assert.Equal(c.B, data[n++]); 1406Assert.Equal(d.B, data[n++]); 1484pixelColor = Color.FromArgb(red.A, pixelColor.R, pixelColor.G, pixelColor.B); 1488Marshal.WriteByte(data.Scan0, 0, blue.B); 1498pixelColor = Color.FromArgb(red.A, pixelColor.R, pixelColor.G, pixelColor.B); 1507Marshal.WriteByte(data.Scan0, 0, blue.B); 1517pixelColor = Color.FromArgb(blue.A, pixelColor.R, pixelColor.G, pixelColor.B); 1535Marshal.WriteByte(data.Scan0, 0, blue.B); 1550Marshal.WriteByte(data.Scan0, 0, blue.B);
System\Drawing\IconTests.cs (2)
742Assert.Equal(e.B, a.B);
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 (20)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (1)
30(int)(buttonBorderShadowColor.B * 0.8f));
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (2)
104(byte)((comboColor.B + SystemColors.Window.B) / 2));
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (2)
949int deltaB = color1.B - color2.B;
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (1)
1306ButtonBaseAdapter.ColorOptions.Adjust255(adjust, highlight.B));
System\Windows\Forms\Controls\Labels\LinkUtilities.cs (2)
118int b = (SystemColors.Window.B + SystemColors.WindowText.B + 1) / 2;
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 (4)
291int blue = (src.B * alpha + (255 - alpha) * dest.B) / 255; 326int b = (nPart1 * src.B + nPart2 * dest.B + sum / 2) / sum;
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.cs (5)
189int color = value.R << 16 | value.G << 8 | value.B; 214int color = value.R << 16 | value.G << 8 | value.B; 239int color = value.R << 16 | value.G << 8 | value.B; 264int color = value.R << 16 | value.G << 8 | value.B; 289int color = value.R << 16 | value.G << 8 | value.B;
System\Windows\Forms\Rendering\ControlPaint.cs (2)
2458float normBlackBlue = replaceBlack.B / (float)255.0; 2462float normWhiteBlue = replaceWhite.B / (float)255.0;
System.Windows.Forms.Design (2)
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (2)
395Color c = Color.FromArgb((short)(ct.R * 0.3 + cw.R * 0.7), (short)(ct.G * 0.3 + cw.G * 0.7), (short)(ct.B * 0.3 + cw.B * 0.7));
System.Windows.Forms.UI.IntegrationTests (2)
PropertyGridTests.cs (2)
377_propertyGrid.CommandsLinkColor.B.Should().Be(255); 398_propertyGrid.CommandsDisabledLinkColor.B.Should().Be(133);