/// <summary> /// Reset a stroker object's attributes. /// </summary> /// <remarks> /// The radius is expressed in the same units as the outline coordinates. /// </remarks> /// <param name="radius">The border radius.</param> /// <param name="lineCap">The line cap style.</param> /// <param name="lineJoin">The line join style.</param> /// <param name="miterLimit"> /// The miter limit for the <see cref="StrokerLineJoin.MiterFixed"/> and /// <see cref="StrokerLineJoin.MiterVariable"/> line join styles, expressed as 16.16 fixed point value. /// </param> public void Set(int radius, StrokerLineCap lineCap, StrokerLineJoin lineJoin, Fixed16Dot16 miterLimit) { if (disposed) { throw new ObjectDisposedException("Stroker", "Cannot access a disposed object."); } FT.FT_Stroker_Set(Reference, radius, lineCap, lineJoin, (IntPtr)miterLimit.Value); }
/// <summary> /// Reset a stroker object's attributes. /// </summary> /// <remarks> /// The radius is expressed in the same units as the outline coordinates. /// </remarks> /// <param name="radius">The border radius.</param> /// <param name="lineCap">The line cap style.</param> /// <param name="lineJoin">The line join style.</param> /// <param name="miterLimit"> /// The miter limit for the <see cref="StrokerLineJoin.MiterFixed"/> and /// <see cref="StrokerLineJoin.MiterVariable"/> line join styles, expressed as 16.16 fixed point value. /// </param> public void Set(int radius, StrokerLineCap lineCap, StrokerLineJoin lineJoin, int miterLimit) { if (disposed) { throw new ObjectDisposedException("Stroker", "Cannot access a disposed object."); } FT.FT_Stroker_Set(Reference, radius, lineCap, lineJoin, miterLimit); }
/// <summary> /// Reset a stroker object's attributes. /// </summary> /// <remarks> /// The radius is expressed in the same units as the outline coordinates. /// </remarks> /// <param name="radius">The border radius.</param> /// <param name="lineCap">The line cap style.</param> /// <param name="lineJoin">The line join style.</param> /// <param name="miterLimit"> /// The miter limit for the <see cref="StrokerLineJoin.MiterFixed"/> and /// <see cref="StrokerLineJoin.MiterVariable"/> line join styles, expressed as 16.16 fixed point value. /// </param> public void Set(int radius, StrokerLineCap lineCap, StrokerLineJoin lineJoin, int miterLimit) { if (disposed) throw new ObjectDisposedException("Stroker", "Cannot access a disposed object."); FT.FT_Stroker_Set(Reference, radius, lineCap, lineJoin, miterLimit); }
internal static extern void FT_Stroker_Set(IntPtr stroker, int radius, StrokerLineCap line_cap, StrokerLineJoin line_join, IntPtr miter_limit);
internal static extern void FT_Stroker_Set(IntPtr stroker, int radius, StrokerLineCap line_cap, StrokerLineJoin line_join, int miter_limit);
/// <summary> /// Reset a stroker object's attributes. /// </summary> /// <remarks> /// The radius is expressed in the same units as the outline coordinates. /// </remarks> /// <param name="radius">The border radius.</param> /// <param name="lineCap">The line cap style.</param> /// <param name="lineJoin">The line join style.</param> /// <param name="miterLimit"> /// The miter limit for the <see cref="StrokerLineJoin.MiterFixed"/> and /// <see cref="StrokerLineJoin.MiterVariable"/> line join styles, expressed as 16.16 fixed point value. /// </param> public void Set(int radius, StrokerLineCap lineCap, StrokerLineJoin lineJoin, Fixed16Dot16 miterLimit) { if (disposed) throw new ObjectDisposedException("Stroker", "Cannot access a disposed object."); FT.FT_Stroker_Set(Reference, radius, lineCap, lineJoin, (IntPtr)miterLimit.Value); }
/// <summary> /// Reset a stroker object's attributes. /// </summary> /// <remarks> /// The radius is expressed in the same units as the outline coordinates. /// </remarks> /// <param name="radius">The border radius.</param> /// <param name="lineCap">The line cap style.</param> /// <param name="lineJoin">The line join style.</param> /// <param name="miterLimit"> /// The miter limit for the <see cref="StrokerLineJoin.MiterFixed"/> and /// <see cref="StrokerLineJoin.MiterVariable"/> line join styles, expressed as 16.16 fixed point value. /// </param> public void Set(int radius, StrokerLineCap lineCap, StrokerLineJoin lineJoin, Fixed16Dot16 miterLimit) => FT.FT_Stroker_Set(Reference, radius, lineCap, lineJoin, (IntPtr)miterLimit.Value);