fixed #531: Added Hex color info to screen color picker

This commit is contained in:
Jaex 2015-03-02 18:11:30 +02:00
parent 8797bb7fc4
commit e0e06c82fc
2 changed files with 4 additions and 3 deletions

View file

@ -308,7 +308,8 @@ private void DrawScreenColorPickerInfo(Graphics g)
g.DrawRectangleProper(Pens.Black, colorBox);
}
string infoText = string.Format(Resources.RectangleRegion_GetColorPickerText, color.R, color.G, color.B, CurrentPosition.X, CurrentPosition.Y);
string infoText = string.Format(Resources.RectangleRegion_GetColorPickerText, color.R, color.G, color.B, ColorHelpers.ColorToHex(color),
CurrentPosition.X, CurrentPosition.Y);
ImageHelpers.DrawTextWithOutline(g, infoText, new PointF(CurrentPosition.X + 25, CurrentPosition.Y + 5), textFont, Color.White, Color.Black);
}

View file

@ -164,7 +164,7 @@ Distance: {6:0.00} px / Angle: {7:0.00}°</value>
<value>Ctrl: Drawing mode ░ Space: Fullscreen capture</value>
</data>
<data name="RectangleRegion_GetColorPickerText" xml:space="preserve">
<value>R: {0}, G: {1}, B: {2}
X: {3}, Y: {4}</value>
<value>R: {0}, G: {1}, B: {2}, Hex: {3}
X: {4}, Y: {5}</value>
<comment>@Invariant</comment></data>
</root>