FT_Outline_Transform() private method

private FT_Outline_Transform ( IntPtr outline, SharpFont.FTMatrix &matrix ) : void
outline System.IntPtr
matrix SharpFont.FTMatrix
return void
Esempio n. 1
0
        /// <summary>
        /// Apply a simple 2x2 matrix to all of an outline's points. Useful for applying rotations, slanting, flipping,
        /// etc.
        /// </summary>
        /// <remarks>
        /// You can use <see cref="Translate"/> if you need to translate the outline's points.
        /// </remarks>
        /// <param name="matrix">A pointer to the transformation matrix.</param>
        public void Transform(FTMatrix matrix)
        {
            if (disposed)
            {
                throw new ObjectDisposedException("Outline", "Cannot access a disposed object.");
            }

            FT.FT_Outline_Transform(reference, ref matrix);
        }
Esempio n. 2
0
 /// <summary>
 /// Apply a simple 2x2 matrix to all of an outline's points. Useful for applying rotations, slanting, flipping,
 /// etc.
 /// </summary>
 /// <remarks>
 /// You can use <see cref="Translate"/> if you need to translate the outline's points.
 /// </remarks>
 /// <param name="matrix">A pointer to the transformation matrix.</param>
 public void Transform(FTMatrix matrix) =>
 FT.FT_Outline_Transform(Reference, ref matrix);