FT_Glyph_Transform() приватный Метод

private FT_Glyph_Transform ( IntPtr glyph, SharpFont.FTMatrix &matrix, SharpFont.FTVector &delta ) : System.Error
glyph System.IntPtr
matrix SharpFont.FTMatrix
delta SharpFont.FTVector
Результат System.Error
Пример #1
0
        /// <summary>
        /// Transform a glyph image if its format is scalable.
        /// </summary>
        /// <param name="matrix">A pointer to a 2x2 matrix to apply.</param>
        /// <param name="delta">
        /// A pointer to a 2d vector to apply. Coordinates are expressed in 1/64th of a pixel.
        /// </param>
        public void Transform(FTMatrix matrix, FTVector delta)
        {
            Error err = FT.FT_Glyph_Transform(Reference, ref matrix, ref delta);

            if (err != Error.Ok)
            {
                throw new FreeTypeException(err);
            }
        }
Пример #2
0
        /// <summary>
        /// Transform a glyph image if its format is scalable.
        /// </summary>
        /// <param name="matrix">A pointer to a 2x2 matrix to apply.</param>
        /// <param name="delta">
        /// A pointer to a 2d vector to apply. Coordinates are expressed in 1/64th of a pixel.
        /// </param>
        public void Transform(FTMatrix matrix, FTVector delta)
        {
            if (disposed)
            {
                throw new ObjectDisposedException("Glyph", "Cannot access a disposed object.");
            }

            Error err = FT.FT_Glyph_Transform(Reference, ref matrix, ref delta);

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