예제 #1
0
파일: D2dGraphics.cs 프로젝트: sbambach/ATF
 /// <summary>
 /// Draws a geometry previosly defined</summary>
 /// <param name="geometry">The geometry to draw</param>
 /// <param name="color">The color used to fill.</param>
 public void FillGeometry(D2dGeometry geometry, Color color)
 {
     m_solidColorBrush.Color = color;
     FillGeometry(geometry, m_solidColorBrush);
 }
예제 #2
0
파일: D2dGraphics.cs 프로젝트: sbambach/ATF
 /// <summary>
 /// Draws a geometry previosly defined</summary>
 /// <param name="geometry">The geometry to draw</param>
 /// <param name="color">The color used to paint the geometry's stroke</param>
 /// <param name="strokeWidth">A value greater than or equal to 0.0f that specifies the width of the stroke</param>
 /// <param name="strokeStyle">The style of the geometry's stroke, or null to paint a solid stroke</param>
 public void DrawGeometry(D2dGeometry geometry, Color color, float strokeWidth = 1.0f, D2dStrokeStyle strokeStyle = null)
 {
     m_solidColorBrush.Color = color;
     DrawGeometry(geometry, m_solidColorBrush, strokeWidth, strokeStyle);
 }
예제 #3
0
파일: D2dGraphics.cs 프로젝트: sbambach/ATF
 /// <summary>
 /// Draws a geometry previosly defined</summary>
 /// <param name="geometry">The geometry to draw</param>
 /// <param name="brush">The brush used to fill.</param>
 public void FillGeometry(D2dGeometry geometry, D2dBrush brush)
 {
     m_renderTarget.FillGeometry(geometry.NativeGeometry, brush.NativeBrush);
 }
예제 #4
0
파일: D2dGraphics.cs 프로젝트: sbambach/ATF
 /// <summary>
 /// Draws a geometry previosly defined</summary>
 /// <param name="geometry">The geometry to draw</param>
 /// <param name="brush">The brush used to paint the geometry's stroke</param>
 /// <param name="strokeWidth">A value greater than or equal to 0.0f that specifies the width of the stroke</param>
 /// <param name="strokeStyle">The style of the geometry's stroke, or null to paint a solid stroke</param>
 public void DrawGeometry(D2dGeometry geometry, D2dBrush brush, float strokeWidth = 1.0f, D2dStrokeStyle strokeStyle = null)
 {
     m_renderTarget.DrawGeometry(geometry.NativeGeometry, brush.NativeBrush, strokeWidth,
             strokeStyle != null ? strokeStyle.NativeStrokeStyle : null);
 }