FT_Outline_Translate() private method

private FT_Outline_Translate ( IntPtr outline, int xOffset, int yOffset ) : void
outline System.IntPtr
xOffset int
yOffset int
return void
Esempio n. 1
0
        /// <summary>
        /// Apply a simple translation to the points of an outline.
        /// </summary>
        /// <param name="offsetX">The horizontal offset.</param>
        /// <param name="offsetY">The vertical offset.</param>
        public void Translate(int offsetX, int offsetY)
        {
            if (disposed)
            {
                throw new ObjectDisposedException("Outline", "Cannot access a disposed object.");
            }

            FT.FT_Outline_Translate(reference, offsetX, offsetY);
        }
Esempio n. 2
0
 /// <summary>
 /// Apply a simple translation to the points of an outline.
 /// </summary>
 /// <param name="offsetX">The horizontal offset.</param>
 /// <param name="offsetY">The vertical offset.</param>
 public void Translate(int offsetX, int offsetY) =>
 FT.FT_Outline_Translate(Reference, offsetX, offsetY);