示例#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, Fixed16Dot16 miterLimit)
        {
            if (disposed)
            {
                throw new ObjectDisposedException("Stroker", "Cannot access a disposed object.");
            }

            FT.FT_Stroker_Set(Reference, radius, lineCap, lineJoin, (IntPtr)miterLimit.Value);
        }
示例#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, int miterLimit)
        {
            if (disposed)
            {
                throw new ObjectDisposedException("Stroker", "Cannot access a disposed object.");
            }

            FT.FT_Stroker_Set(Reference, radius, lineCap, lineJoin, miterLimit);
        }
示例#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, int miterLimit)
        {
            if (disposed)
                throw new ObjectDisposedException("Stroker", "Cannot access a disposed object.");

            FT.FT_Stroker_Set(Reference, radius, lineCap, lineJoin, miterLimit);
        }
示例#4
0
 internal static extern void FT_Stroker_Set(IntPtr stroker, int radius, StrokerLineCap line_cap, StrokerLineJoin line_join, IntPtr miter_limit);
示例#5
0
 internal static extern void FT_Stroker_Set(IntPtr stroker, int radius, StrokerLineCap line_cap, StrokerLineJoin line_join, int miter_limit);
示例#6
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);
		}
示例#7
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);