Search found 3 matches
- Mon Apr 22, 2013 8:36 am
- Forum: .NET
- Topic: Bolding a font in Afterdraw...
- Replies: 3
- Views: 5610
Re: Bolding a font in Afterdraw...
Thank you, I found what line makes this (bolding text) not work - in my code, when initializing the chart, I assign a font to bottom axis: Ax.Labels.Font = new Steema.TeeChart.Drawing.ChartFont(mainChart.Chart, new System.Drawing.Font("Arial",8)); Once I do that, setting the Bold property no longer ...
- Fri Apr 19, 2013 8:40 pm
- Forum: .NET
- Topic: Bolding a font in Afterdraw...
- Replies: 3
- Views: 5610
Bolding a font in Afterdraw...
I have this code in a chart's Afterdraw: Code: Select all Graphics3D g = TheChart.Graphics3D; g.Font = TheChart.Axes.Top.Labels.Font; g.Font.Bold = true; ... g.TextOut(x, y, S); the shown text is not bold (since the original Top.Labels.Font isn't bold). The line "g.Font.Bold = true;", even though it...
- Fri Apr 19, 2013 3:04 am
- Forum: .NET
- Topic: Some questionable utils code
- Replies: 2
- Views: 6092
Some questionable utils code
in Utils.cs: public static Color CalcColorBlend(Color start, Color end, int percentage) ... Rectangle rect = new Rectangle(0, 0, 100, 1); LinearGradientBrush brush = new LinearGradientBrush(rect, start, end, LinearGradientMode.Horizontal); if (bmp == null) { bmp = new Bitmap(100, 1); } Graphics g = ...