Example #1
0
        /// <summary>
        /// Draw text
        /// </summary>
        /// <param name="text">Text</param>
        /// <param name="x">Left position</param>
        /// <param name="y">Top position</param>
        /// <param name="width">Max width</param>
        /// <param name="height">Max heigh</param>
        public void DrawString(string text, float x, float y, float width = 800, float height = 600)
        {
            var brush = GetBrush(Color.White);

            NativeDeviceContext.DrawText(text, TextFormat, new RawRectangleF(x, y, width, height), brush);
        }