79 references to G
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)
91args[nArg++] = intConverter.ConvertToString(context, culture, (object)c.G); 112args = new object[] { c.A, c.R, c.G, c.B }; 122args = new object[] { c.R, c.G, c.B };
System.Drawing.Common.Tests (50)
Helpers.cs (1)
82stringBuilder.Append($"Color.FromArgb({color.A}, {color.R}, {color.G}, {color.B})");
mono\System.Drawing.Imaging\GifCodecTests.cs (2)
173Assert.Equal(i, c.G); 211Assert.Equal(0, color.G);
mono\System.Drawing.Imaging\JpegCodecTests.cs (2)
78Assert.Equal(i, c.G); 367Assert.True(color.G < 60);
mono\System.Drawing\BitmapTests.cs (23)
166Assert.Equal(32, c.G); 170Assert.Equal(33, c.G); 179Assert.Equal(48, d.G); 183Assert.Equal(49, d.G); 195Assert.Equal(a.G - 1, c.G); 201Assert.Equal(b.G - 1, d.G); 224Assert.Equal(Math.Ceiling((float)c.G * c.A / 255), data[1]); 228Assert.Equal(Math.Ceiling((float)d.G * d.A / 255), data[5]); 261Assert.Equal(c.G, data[n++]); 268Assert.Equal(d.G, data[n++]); 384pixels[index++] = clr.G; 495pixels[index++] = clr.G; 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); 698Marshal.WriteByte(data.Scan0, 1, blue.G); 707pixel_colour = Color.FromArgb(red.A, pixel_colour.R, pixel_colour.G, pixel_colour.B); 717Marshal.WriteByte(data.Scan0, 1, blue.G); 726pixel_colour = Color.FromArgb(blue.A, pixel_colour.R, pixel_colour.G, pixel_colour.B); 746Marshal.WriteByte(data.Scan0, 1, blue.G); 761Marshal.WriteByte(data.Scan0, 1, blue.G);
System\Drawing\BitmapTests.cs (20)
390Assert.Equal(Color.FromArgb(255, expectedColor.R, expectedColor.G, expectedColor.B), clone.GetPixel(x, y)); 1300Assert.Equal(32, c.G); 1304Assert.Equal(33, c.G); 1313Assert.Equal(48, d.G); 1317Assert.Equal(49, d.G); 1328Assert.Equal(a.G - 1, c.G); 1333Assert.Equal(b.G - 1, d.G); 1356Assert.Equal(Math.Ceiling((float)c.G * c.A / 255), data[1]); 1360Assert.Equal(Math.Ceiling((float)d.G * d.A / 255), data[5]); 1392Assert.Equal(c.G, data[n++]); 1407Assert.Equal(d.G, data[n++]); 1484pixelColor = Color.FromArgb(red.A, pixelColor.R, pixelColor.G, pixelColor.B); 1489Marshal.WriteByte(data.Scan0, 1, blue.G); 1498pixelColor = Color.FromArgb(red.A, pixelColor.R, pixelColor.G, pixelColor.B); 1508Marshal.WriteByte(data.Scan0, 1, blue.G); 1517pixelColor = Color.FromArgb(blue.A, pixelColor.R, pixelColor.G, pixelColor.B); 1536Marshal.WriteByte(data.Scan0, 1, blue.G); 1551Marshal.WriteByte(data.Scan0, 1, blue.G);
System\Drawing\IconTests.cs (2)
741Assert.Equal(e.G, a.G);
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 (19)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (1)
29(int)(buttonBorderShadowColor.G * 0.8f),
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (2)
103(byte)((comboColor.G + SystemColors.Window.G) / 2),
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (2)
948int deltaG = color1.G - color2.G;
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (1)
1305ButtonBaseAdapter.ColorOptions.Adjust255(adjust, highlight.G),
System\Windows\Forms\Controls\Labels\LinkUtilities.cs (1)
117int g = SystemColors.WindowText.G;
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)
290int green = (src.G * alpha + (255 - alpha) * dest.G) / 255; 325int g = (nPart1 * src.G + nPart2 * dest.G + 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)
2457float normBlackGreen = replaceBlack.G / (float)255.0; 2461float normWhiteGreen = replaceWhite.G / (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)
376_propertyGrid.CommandsLinkColor.G.Should().Be(0); 397_propertyGrid.CommandsDisabledLinkColor.G.Should().Be(133);