Exemplo n.º 1
0
 /// <summary>
 /// Creates an <see cref="SharpDX.Direct2D1.GradientStopCollection"/> from the specified gradient stops, color interpolation gamma, and extend mode.
 /// </summary>
 /// <param name="renderTarget">an instance of <see cref = "SharpDX.Direct2D1.RenderTarget" /></param>
 /// <param name="gradientStops">A pointer to an array of D2D1_GRADIENT_STOP structures.</param>
 /// <param name="colorInterpolationGamma">The space in which color interpolation between the gradient stops is performed.</param>
 /// <param name="extendMode">The behavior of the gradient outside the [0,1] normalized range.</param>
 /// <unmanaged>HRESULT CreateGradientStopCollection([In, Buffer] const D2D1_GRADIENT_STOP* gradientStops,[None] UINT gradientStopsCount,[None] D2D1_GAMMA colorInterpolationGamma,[None] D2D1_EXTEND_MODE extendMode,[Out] ID2D1GradientStopCollection** gradientStopCollection)</unmanaged>
 public GradientStopCollection(RenderTarget renderTarget, SharpDX.Direct2D1.GradientStop[] gradientStops, SharpDX.Direct2D1.Gamma colorInterpolationGamma, SharpDX.Direct2D1.ExtendMode extendMode) : base(IntPtr.Zero)
 {
     renderTarget.CreateGradientStopCollection(gradientStops, gradientStops.Length, colorInterpolationGamma, extendMode, this);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Creates an <see cref="SharpDX.Direct2D1.GradientStopCollection"/> from the specified gradient stops, color interpolation gamma, and ExtendMode.Clamp.
 /// </summary>
 /// <param name="renderTarget">an instance of <see cref = "SharpDX.Direct2D1.RenderTarget" /></param>
 /// <param name="gradientStops">A pointer to an array of D2D1_GRADIENT_STOP structures.</param>
 /// <param name="colorInterpolationGamma">The space in which color interpolation between the gradient stops is performed.</param>
 /// <unmanaged>HRESULT CreateGradientStopCollection([In, Buffer] const D2D1_GRADIENT_STOP* gradientStops,[None] UINT gradientStopsCount,[None] D2D1_GAMMA colorInterpolationGamma,[None] D2D1_EXTEND_MODE extendMode,[Out] ID2D1GradientStopCollection** gradientStopCollection)</unmanaged>
 public GradientStopCollection(RenderTarget renderTarget, SharpDX.Direct2D1.GradientStop[] gradientStops, SharpDX.Direct2D1.Gamma colorInterpolationGamma)
     : this(renderTarget, gradientStops, colorInterpolationGamma, Direct2D1.ExtendMode.Clamp)
 {
 }