76 references to R
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)
90
args[nArg++] = intConverter.ConvertToString(context, culture, (object)c.
R
);
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)
172
Assert.Equal(i, c.
R
);
210
Assert.True(color.
R
>= 248);
mono\System.Drawing.Imaging\JpegCodecTests.cs (2)
77
Assert.Equal(i, c.
R
);
366
Assert.True(color.
R
>= 195);
mono\System.Drawing\BitmapTests.cs (21)
163
Assert.Equal(66, c.
R
);
176
Assert.Equal(99, d.
R
);
194
Assert.Equal(a.
R
- 1, c.
R
);
200
Assert.Equal(b.
R
- 1, d.
R
);
225
Assert.Equal(Math.Ceiling((float)c.
R
* c.A / 255), data[2]);
229
Assert.Equal(Math.Ceiling((float)d.
R
* d.A / 255), data[6]);
262
Assert.Equal(c.
R
, data[n++]);
269
Assert.Equal(d.
R
, data[n++]);
383
pixels[index++] = clr.
R
;
494
pixels[index++] = clr.
R
;
674
Color red = Color.FromArgb(Color.Red.A, Color.Red.
R
, Color.Red.G, Color.Red.B);
675
Color blue = Color.FromArgb(Color.Blue.A, Color.Blue.
R
, Color.Blue.G, Color.Blue.B);
693
pixel_colour = Color.FromArgb(red.A, pixel_colour.
R
, pixel_colour.G, pixel_colour.B);
699
Marshal.WriteByte(data.Scan0, 2, blue.
R
);
707
pixel_colour = Color.FromArgb(red.A, pixel_colour.
R
, pixel_colour.G, pixel_colour.B);
718
Marshal.WriteByte(data.Scan0, 2, blue.
R
);
726
pixel_colour = Color.FromArgb(blue.A, pixel_colour.
R
, pixel_colour.G, pixel_colour.B);
747
Marshal.WriteByte(data.Scan0, 2, blue.
R
);
762
Marshal.WriteByte(data.Scan0, 2, blue.
R
);
System\Drawing\BitmapTests.cs (18)
390
Assert.Equal(Color.FromArgb(255, expectedColor.
R
, expectedColor.G, expectedColor.B), clone.GetPixel(x, y));
1297
Assert.Equal(66, c.
R
);
1310
Assert.Equal(99, d.
R
);
1327
Assert.Equal(a.
R
- 1, c.
R
);
1332
Assert.Equal(b.
R
- 1, d.
R
);
1357
Assert.Equal(Math.Ceiling((float)c.
R
* c.A / 255), data[2]);
1361
Assert.Equal(Math.Ceiling((float)d.
R
* d.A / 255), data[6]);
1393
Assert.Equal(c.
R
, data[n++]);
1408
Assert.Equal(d.
R
, data[n++]);
1484
pixelColor = Color.FromArgb(red.A, pixelColor.
R
, pixelColor.G, pixelColor.B);
1490
Marshal.WriteByte(data.Scan0, 2, blue.
R
);
1498
pixelColor = Color.FromArgb(red.A, pixelColor.
R
, pixelColor.G, pixelColor.B);
1509
Marshal.WriteByte(data.Scan0, 2, blue.
R
);
1517
pixelColor = Color.FromArgb(blue.A, pixelColor.
R
, pixelColor.G, pixelColor.B);
1537
Marshal.WriteByte(data.Scan0, 2, blue.
R
);
1552
Marshal.WriteByte(data.Scan0, 2, blue.
R
);
System\Drawing\IconTests.cs (2)
740
Assert.Equal(e.
R
, a.
R
);
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)
28
(int)(buttonBorderShadowColor.
R
* 0.8f),
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (2)
102
(byte)((comboColor.
R
+ SystemColors.Window.
R
) / 2),
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (2)
947
int deltaR = color1.
R
- color2.
R
;
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (1)
1304
ButtonBaseAdapter.ColorOptions.Adjust255(adjust, highlight.
R
),
System\Windows\Forms\Controls\Labels\LinkUtilities.cs (2)
116
int r = (SystemColors.Window.
R
+ SystemColors.WindowText.
R
+ 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)
289
int red = (src.
R
* alpha + (255 - alpha) * dest.
R
) / 255;
324
int r = (nPart1 * src.
R
+ nPart2 * dest.
R
+ sum / 2) / sum;
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.cs (5)
189
int color = value.
R
<< 16 | value.G << 8 | value.B;
214
int color = value.
R
<< 16 | value.G << 8 | value.B;
239
int color = value.
R
<< 16 | value.G << 8 | value.B;
264
int color = value.
R
<< 16 | value.G << 8 | value.B;
289
int color = value.
R
<< 16 | value.G << 8 | value.B;
System\Windows\Forms\Rendering\ControlPaint.cs (2)
2456
float normBlackRed = replaceBlack.
R
/ (float)255.0;
2460
float normWhiteRed = replaceWhite.
R
/ (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)
375
_propertyGrid.CommandsLinkColor.
R
.Should().Be(0);
396
_propertyGrid.CommandsDisabledLinkColor.
R
.Should().Be(133);