79 references to R
System.Activities.Presentation (3)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyInspectorFontAndColorDictionary.cs (3)
28
color.R = drawingBrush.Color.
R
;
39
startingColor.R = drawingBrush.LinearColors[0].
R
;
44
endingColor.R = drawingBrush.LinearColors[1].
R
;
System.Drawing (12)
commonui\System\Drawing\Advanced\ColorTranslator.cs (2)
40
return c.
R
<< Win32RedShift | c.G << Win32GreenShift | c.B << Win32BlueShift;
337
colorString = "#" + c.
R
.ToString("X2", null) +
commonui\System\Drawing\Color.cs (7)
1468
Name, A,
R
, G, B);
1573
return new Color(MakeArgb(unchecked((byte) alpha), baseColor.
R
, baseColor.G, baseColor.B), StateARGBValueValid, null, (KnownColor)0);
1621
float r = (float)
R
/ 255.0f;
1644
if (
R
== G && G == B)
1647
float r = (float)
R
/ 255.0f;
1687
float r = (float)
R
/ 255.0f;
1759
sb.Append(
R
);
commonui\System\Drawing\ColorConverter.cs (3)
278
args[nArg++] = intConverter.ConvertToString(context, culture, (object)c.
R
);
306
args = new object[] {c.A, c.
R
, c.G, c.B};
314
args = new object[] {c.
R
, c.G, c.B};
System.Web (1)
UI\WebControls\WebColorConverter.cs (1)
124
sb.Append((c.
R
).ToString("X2", CultureInfo.InvariantCulture));
System.Web.DataVisualization (12)
Common\Borders3D\EmbedBorder.cs (3)
921
float colorDarkeningIndex = 0.3f + (0.4f * (borderSkin.PageColor.
R
+ borderSkin.PageColor.G + borderSkin.PageColor.B) / 765f);
923
(int)(backColor.
R
*colorDarkeningIndex),
929
(int)(borderSkin.PageColor.
R
*colorDarkeningIndex),
Common\Borders3D\EmbossBorder.cs (3)
176
float colorDarkeningIndex = 0.2f + (0.4f * (borderSkin.PageColor.
R
+ borderSkin.PageColor.G + borderSkin.PageColor.B) / 765f);
178
(int)(borderSkin.PageColor.
R
*colorDarkeningIndex),
188
(int)(borderSkin.PageColor.
R
*colorDarkeningIndex),
Common\ChartTypes\BoxPlotChart.cs (4)
491
double brightness = Math.Sqrt(point.Color.
R
* point.Color.
R
+ point.Color.G * point.Color.G + point.Color.B * point.Color.B);
1271
double brightness = Math.Sqrt(point.Color.
R
* point.Color.
R
+ point.Color.G * point.Color.G + point.Color.B * point.Color.B);
Common\General\ChartGraphics.cs (2)
5696
int nBRed = beginColor.
R
;
5701
int nERed = endColor.
R
;
System.Web.Mobile (3)
UI\MobileControls\Adapters\HtmlCalendarAdapter.cs (1)
129
int deltaR = System.Math.Abs(backColor.
R
- 0xC0);
UI\MobileControls\Design\Adapters\DesignerAdapterUtil.cs (2)
242
Color c = Color.FromArgb((Int16)(ct.
R
* 0.1 + cw.
R
* 0.9),
System.Windows.Forms (32)
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (4)
96
byte r1 = color1.
R
;
101
byte r2 = color2.
R
;
776
colors.lowButtonFace = Color.FromArgb(Adjust255(adjust, colors.buttonFace.
R
),
784
colors.lowHighlight = Color.FromArgb(Adjust255(adjust, colors.highlight.
R
),
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxBaseAdapter.cs (2)
95
byte R = (byte)((comboColor.
R
+ SystemColors.Window.
R
) / 2);
winforms\Managed\System\WinForms\ControlPaint.cs (10)
2319
return Color.FromArgb(color.A, (byte)~color.
R
, (byte)~color.G, (byte)~color.B);
2574
float normBlackRed = ((float)replaceBlack.
R
)/(float)255.0;
2579
float normWhiteRed = ((float)replaceWhite.
R
)/(float)255.0;
2817
int r = color.
R
;
2910
int dr = dark.
R
- darkDark.
R
;
2914
return Color.FromArgb((byte)(dark.
R
- (byte)(dr * percDarker)),
2977
int dr = light.
R
- lightLight.
R
;
2981
return Color.FromArgb((byte)(light.
R
- (byte)(dr * percLighter)),
winforms\Managed\System\WinForms\DataGridViewCell.cs (2)
1180
int deltaR = color1.
R
- color2.
R
;
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (1)
1385
highlight = Color.FromArgb(ButtonInternal.ButtonBaseAdapter.ColorOptions.Adjust255(adjust, highlight.
R
),
winforms\Managed\System\WinForms\HtmlDocument.cs (5)
205
int color = value.
R
<< 16 | value.G << 8 | value.B;
234
int color = value.
R
<< 16 | value.G << 8 | value.B;
263
int color = value.
R
<< 16 | value.G << 8 | value.B;
292
int color = value.
R
<< 16 | value.G << 8 | value.B;
321
int color = value.
R
<< 16 | value.G << 8 | value.B;
winforms\Managed\System\WinForms\LinkUtilities.cs (2)
114
int r = (SystemColors.Window.
R
+ SystemColors.WindowText.
R
+ 1) / 2;
winforms\Managed\System\WinForms\ProfessionalColorTable.cs (4)
427
int red = (src.
R
* alpha + (255 - alpha) * dest.
R
) / 255;
462
r = (nPart1 * src.
R
+ nPart2 * dest.
R
+ sum / 2) / sum;
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (1)
139
return Color.FromArgb(color.A, (byte)~color.
R
, (byte)~color.G, (byte)~color.B);
winforms\Managed\System\WinForms\SafeNativeMethods.cs (1)
898
return (int)color.
R
| ((int)color.G << 8) | ((int)color.B << 16);
System.Windows.Forms.DataVisualization (10)
Common\Borders3D\EmbedBorder.cs (1)
923
(int)(backColor.
R
*colorDarkeningIndex),
Common\Borders3D\EmbossBorder.cs (3)
176
float colorDarkeningIndex = 0.2f + (0.4f * (borderSkin.PageColor.
R
+ borderSkin.PageColor.G + borderSkin.PageColor.B) / 765f);
178
(int)(borderSkin.PageColor.
R
*colorDarkeningIndex),
188
(int)(borderSkin.PageColor.
R
*colorDarkeningIndex),
Common\ChartTypes\BoxPlotChart.cs (4)
491
double brightness = Math.Sqrt(point.Color.
R
* point.Color.
R
+ point.Color.G * point.Color.G + point.Color.B * point.Color.B);
1271
double brightness = Math.Sqrt(point.Color.
R
* point.Color.
R
+ point.Color.G * point.Color.G + point.Color.B * point.Color.B);
Common\General\ChartGraphics.cs (2)
5696
int nBRed = beginColor.
R
;
5701
int nERed = endColor.
R
;
System.Workflow.ComponentModel (6)
AuthoringOM\Design\ActivityDesignerLayoutSerializers.cs (1)
325
long colorValue = (long)((uint)(color.A << 24 | color.
R
<< 16 | color.G << 8 | color.B)) & 0xFFFFFFFF;
AuthoringOM\Design\DesignerHelpers.cs (1)
480
shadowColor = Color.FromArgb(shadowColor.A + alphaIncreament, shadowColor.
R
, shadowColor.G, shadowColor.B);
AuthoringOM\Design\DesignerWidgets.cs (2)
1882
hottrackColor = Color.FromArgb(255 - hottrackColor.
R
, 255 - hottrackColor.G, 255 - hottrackColor.B);
1883
selectionColor = Color.FromArgb(255 - selectionColor.
R
, 255 - selectionColor.G, 255 - selectionColor.B);
AuthoringOM\Design\Themes.cs (2)
2883
Color minorGridColor = Color.FromArgb(this.gridColor.A, Math.Min(this.gridColor.
R
+ 32, 255), Math.Min(this.gridColor.G + 32, 255), Math.Min(this.gridColor.B + 32, 255));
2899
Color minorGridColor = Color.FromArgb(this.gridColor.A, Math.Min(this.gridColor.
R
+ 32, 255), Math.Min(this.gridColor.G + 32, 255), Math.Min(this.gridColor.B + 32, 255));