As a simple approach, you can just factor the RGB values:
Color c1 = Color.Red;
Color c2 = Color.FromArgb(c1.A,
(int)(c1.R * 0.8), (int)(c1.G * 0.8), (int)(c1.B * 0.8));
(which should darken it; or, for example, * 1.25 to brighten it)
More Related Contents:
- A generic error occurred in GDI+, JPEG Image to MemoryStream
- Translucent circular Control with text
- Resize image proportionally with MaxHeight and MaxWidth constraints
- How to read the Color of a Screen Pixel
- How to make two transparent layer with c#?
- How to drag and move shapes in C#
- Alternatives to System.Drawing for use with ASP.NET?
- How can I treat the circle as a control after drawing it? – Moving and selecting shapes
- Transparent Overlapping Circular Progress Bars (Custom Control)
- Zoom and translate an Image from the mouse location
- Graphics.DrawString vs TextRenderer.DrawText?Which can Deliver Better Quality
- TextRenderer.MeasureText and Graphics.MeasureString mismatch in size
- Measure a String without using a Graphics object?
- How to effectively draw on desktop in C#?
- Creating Custom Picturebox with Draggable and Resizable Selection Window
- Image is not drawn at the correct spot
- How to highlight wrapped text in a control using the graphics?
- Is Graphics.DrawImage too slow for bigger images?
- C# – Outputting image to response output stream giving GDI+ error
- Using a matrix to rotate rectangles individually
- Draw multiple freehand Polyline or Curve drawing – Adding Undo Feature
- How to save shapes which I draw on a Panel as binary
- Drawing a Long String on to a Bitmap results in Drawing Issues
- Rotate a point around another point
- How can I tell if a point belongs to a certain line?
- How to create a User Control with rounded corners?
- Saving image to file
- Can you make an alpha transparent PNG with C#?
- Winforms: SuspendLayout/ResumeLayout is not enough?
- Region.IsVisible(PointF) has very slow performance for large floating point values