Esempio n. 1
0
        private void Render()
        {
            m_d2dGraphics.BeginDraw();
            m_d2dGraphics.Clear(Color.White);

            m_d2dGraphics.AntialiasMode = D2dAntialiasMode.PerPrimitive;


            m_d2dGraphics.DrawText
                (testString, m_generalTextFormat,
                new PointF(1, 1), Color.Blue);


            m_d2dGraphics.EndDraw();
        }
Esempio n. 2
0
        public void RenderAll()
        {
            m_d2dGraphics.BeginDraw();
            m_d2dGraphics.Clear(Color.White);

            m_d2dGraphics.AntialiasMode = D2dAntialiasMode.PerPrimitive;

            Story story = m_control.Document.Cast <Story>();

            m_d2dGraphics.DrawText
                (story.StoryText, m_generalTextFormat,
                new PointF(1, 1), Color.Blue);


            m_d2dGraphics.EndDraw();
        }