FT_Stroker_Set() private method

private FT_Stroker_Set ( IntPtr stroker, int radius, StrokerLineCap line_cap, StrokerLineJoin line_join, IntPtr miter_limit ) : void
stroker System.IntPtr
radius int
line_cap StrokerLineCap
line_join StrokerLineJoin
miter_limit System.IntPtr
return void
Esempio n. 1
0
        /// <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);
        }
Esempio n. 2
0
        /// <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);
        }
Esempio n. 3
0
 /// <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);