コード例 #1
0
ファイル: StrokeStyle1.cs プロジェクト: zmtzawqlp/SharpDX
 /// <summary>
 /// Initializes a new instance of the <see cref="StrokeStyle1"/> class.
 /// </summary>
 /// <param name="factory">The factory.</param>
 /// <param name="strokeStyleProperties">No documentation.</param>
 /// <param name="dashes">No documentation.</param>
 /// <unmanaged>HRESULT ID2D1Factory1::CreateStrokeStyle([In] const D2D1_STROKE_STYLE_PROPERTIES1* strokeStyleProperties,[In, Buffer, Optional] const float* dashes,[In] unsigned int dashesCount,[Out, Fast] ID2D1StrokeStyle1** strokeStyle)</unmanaged>
 ///
 /// <unmanaged>HRESULT ID2D1Factory1::CreateStrokeStyle([In] const D2D1_STROKE_STYLE_PROPERTIES1* strokeStyleProperties,[In, Buffer, Optional] const float* dashes,[In] unsigned int dashesCount,[Out, Fast] ID2D1StrokeStyle1** strokeStyle)</unmanaged>
 /// <remarks>
 /// It is valid to specify a dash array only if <see cref="SharpDX.Direct2D1.DashStyle.Custom"/> is also specified.
 /// </remarks>
 public StrokeStyle1(Factory1 factory, SharpDX.Direct2D1.StrokeStyleProperties1 strokeStyleProperties, float[] dashes)
     : base(IntPtr.Zero)
 {
     factory.CreateStrokeStyle(ref strokeStyleProperties, dashes, dashes.Length, this);
 }
コード例 #2
0
ファイル: StrokeStyle1.cs プロジェクト: zmtzawqlp/SharpDX
 /// <summary>
 /// Initializes a new instance of the <see cref="StrokeStyle1"/> class.
 /// </summary>
 /// <param name="factory">The factory.</param>
 /// <param name="strokeStyleProperties">No documentation.</param>
 /// <unmanaged>HRESULT ID2D1Factory1::CreateStrokeStyle([In] const D2D1_STROKE_STYLE_PROPERTIES1* strokeStyleProperties,[In, Buffer, Optional] const float* dashes,[In] unsigned int dashesCount,[Out, Fast] ID2D1StrokeStyle1** strokeStyle)</unmanaged>
 public StrokeStyle1(Factory1 factory, SharpDX.Direct2D1.StrokeStyleProperties1 strokeStyleProperties)
     : base(IntPtr.Zero)
 {
     factory.CreateStrokeStyle(ref strokeStyleProperties, null, 0, this);
 }