Ejemplo n.º 1
0
 /// <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);
 }
Ejemplo n.º 2
0
 /// <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);
 }
Ejemplo n.º 3
0
 /// <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);
 }
Ejemplo n.º 4
0
 /// <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);
 }