■ ChartBrush 클래스를 사용해 해시 ChartBrush 객체를 생성하는 방법을 보여준다.
▶ ChartBrush 클래스 : 해시 ChartBrush 객체 생성하기 예제 (C#)
1 2 3 4 5 6 7 8 |
using System.Drawing; using System.Drawing.Drawing2D; using Steema.TeeChart.Drawing; ChartBrush chartBrush = CreateHatchChartBrush(HatchStyle.Cross, Color.Black, Color.Yellow, 50); |
▶ ChartBrush 클래스 : 해시 ChartBrush 객체 생성하기 (C#)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
using System.Drawing; using System.Drawing.Drawing2D; using Steema.TeeChart.Drawing; #region 해시 ChartBrush 객체 생성하기 - CreateHatchChartBrush(hatchStyle, foregroundColor, backgroundColor, transparency) /// <summary> /// 해시 ChartBrush 객체 생성하기 /// </summary> /// <param name="hatchStyle">HatchStyle 객체</param> /// <param name="foregroundColor">전경 색상</param> /// <param name="backgroundColor">배경 색상</param> /// <param name="transparency">투명도</param> /// <returns>ChartBrush 객체</returns> public ChartBrush CreateHatchChartBrush(HatchStyle hatchStyle, Color foregroundColor, Color backgroundColor, int transparency) { ChartBrush chartBrush = new ChartBrush(); chartBrush.Style = hatchStyle; chartBrush.ForegroundColor = foregroundColor; chartBrush.Color = backgroundColor; chartBrush.Transparency = transparency; return chartBrush; } #endregion |