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