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