76 references to B
Microsoft.VisualStudio.LanguageServices (1)
VSWpfThemeService.cs (1)
36
return Color.FromArgb(color.A, color.R, color.G, color.
B
);
System.ComponentModel.TypeConverter (3)
System\Drawing\ColorConverter.cs (3)
92
args[nArg++] = intConverter.ConvertToString(context, culture, (object)c.
B
);
112
args = new object[] { c.A, c.R, c.G, c.
B
};
122
args = new object[] { c.R, c.G, c.
B
};
System.Drawing.Common.Tests (46)
Helpers.cs (1)
82
stringBuilder.Append($"Color.FromArgb({color.A}, {color.R}, {color.G}, {color.
B
})");
mono\System.Drawing.Imaging\GifCodecTests.cs (2)
174
Assert.Equal(i, c.
B
);
212
Assert.Equal(0, color.
B
);
mono\System.Drawing.Imaging\JpegCodecTests.cs (2)
79
Assert.Equal(i, c.
B
);
368
Assert.True(color.
B
< 60);
mono\System.Drawing\BitmapTests.cs (21)
173
Assert.Equal(16, c.
B
);
186
Assert.Equal(24, d.
B
);
196
Assert.Equal(a.
B
- 1, c.
B
);
202
Assert.Equal(b.
B
- 1, d.
B
);
223
Assert.Equal(Math.Ceiling((float)c.
B
* c.A / 255), data[0]);
227
Assert.Equal(Math.Ceiling((float)d.
B
* d.A / 255), data[4]);
260
Assert.Equal(c.
B
, data[n++]);
267
Assert.Equal(d.
B
, data[n++]);
385
pixels[index++] = clr.
B
;
493
pixels[index++] = clr.
B
;
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
);
694
Marshal.WriteByte(data.Scan0, 0, blue.
B
);
704
pixel_colour = Color.FromArgb(red.A, pixel_colour.R, pixel_colour.G, pixel_colour.
B
);
713
Marshal.WriteByte(data.Scan0, 0, blue.
B
);
723
pixel_colour = Color.FromArgb(blue.A, pixel_colour.R, pixel_colour.G, pixel_colour.
B
);
742
Marshal.WriteByte(data.Scan0, 0, blue.
B
);
757
Marshal.WriteByte(data.Scan0, 0, blue.
B
);
System\Drawing\BitmapTests.cs (18)
390
Assert.Equal(Color.FromArgb(255, expectedColor.R, expectedColor.G, expectedColor.
B
), clone.GetPixel(x, y));
1307
Assert.Equal(16, c.
B
);
1320
Assert.Equal(24, d.
B
);
1329
Assert.Equal(a.
B
- 1, c.
B
);
1334
Assert.Equal(b.
B
- 1, d.
B
);
1355
Assert.Equal(Math.Ceiling((float)c.
B
* c.A / 255), data[0]);
1359
Assert.Equal(Math.Ceiling((float)d.
B
* d.A / 255), data[4]);
1391
Assert.Equal(c.
B
, data[n++]);
1406
Assert.Equal(d.
B
, data[n++]);
1484
pixelColor = Color.FromArgb(red.A, pixelColor.R, pixelColor.G, pixelColor.
B
);
1488
Marshal.WriteByte(data.Scan0, 0, blue.
B
);
1498
pixelColor = Color.FromArgb(red.A, pixelColor.R, pixelColor.G, pixelColor.
B
);
1507
Marshal.WriteByte(data.Scan0, 0, blue.
B
);
1517
pixelColor = Color.FromArgb(blue.A, pixelColor.R, pixelColor.G, pixelColor.
B
);
1535
Marshal.WriteByte(data.Scan0, 0, blue.
B
);
1550
Marshal.WriteByte(data.Scan0, 0, blue.
B
);
System\Drawing\IconTests.cs (2)
742
Assert.Equal(e.
B
, a.
B
);
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 (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)
949
int deltaB = color1.
B
- color2.
B
;
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (1)
1307
ButtonBaseAdapter.ColorOptions.Adjust255(adjust, highlight.
B
));
System\Windows\Forms\Controls\Labels\LinkUtilities.cs (2)
118
int 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)
291
int blue = (src.
B
* alpha + (255 - alpha) * dest.
B
) / 255;
326
int b = (nPart1 * src.
B
+ nPart2 * dest.
B
+ sum / 2) / sum;
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.cs (5)
188
int color = value.R << 16 | value.G << 8 | value.
B
;
213
int color = value.R << 16 | value.G << 8 | value.
B
;
238
int color = value.R << 16 | value.G << 8 | value.
B
;
263
int color = value.R << 16 | value.G << 8 | value.
B
;
288
int color = value.R << 16 | value.G << 8 | value.
B
;
System\Windows\Forms\Rendering\ControlPaint.cs (2)
2458
float normBlackBlue = replaceBlack.
B
/ (float)255.0;
2462
float normWhiteBlue = replaceWhite.
B
/ (float)255.0;
System.Windows.Forms.Design (2)
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (2)
395
Color 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);