FT_Outline_EmboldenXY() private method

private FT_Outline_EmboldenXY ( IntPtr outline, int xstrength, int ystrength ) : System.Error
outline System.IntPtr
xstrength int
ystrength int
return System.Error
Esempio n. 1
0
        /// <summary>
        /// Embolden an outline. The new outline will be ‘xstrength’ pixels wider and ‘ystrength’ pixels higher.
        /// Otherwise, it is similar to <see cref="Embolden"/>, which uses the same strength in both directions.
        /// </summary>
        /// <param name="strengthX">
        /// How strong the glyph is emboldened in the X direction. Expressed in 26.6 pixel format.
        /// </param>
        /// <param name="strengthY">
        /// How strong the glyph is emboldened in the Y direction. Expressed in 26.6 pixel format.
        /// </param>
        public void EmboldenXY(int strengthX, int strengthY)
        {
            Error err = FT.FT_Outline_EmboldenXY(Reference, strengthX, strengthY);

            if (err != Error.Ok)
            {
                throw new FreeTypeException(err);
            }
        }
Esempio n. 2
0
        /// <summary>
        /// Embolden an outline. The new outline will be ‘xstrength’ pixels wider and ‘ystrength’ pixels higher.
        /// Otherwise, it is similar to <see cref="Embolden"/>, which uses the same strength in both directions.
        /// </summary>
        /// <param name="strengthX">
        /// How strong the glyph is emboldened in the X direction. Expressed in 26.6 pixel format.
        /// </param>
        /// <param name="strengthY">
        /// How strong the glyph is emboldened in the Y direction. Expressed in 26.6 pixel format.
        /// </param>
        public void EmboldenXY(int strengthX, int strengthY)
        {
            if (disposed)
            {
                throw new ObjectDisposedException("Outline", "Cannot access a disposed object.");
            }

            Error err = FT.FT_Outline_EmboldenXY(reference, strengthX, strengthY);

            if (err != Error.Ok)
            {
                throw new FreeTypeException(err);
            }
        }