示例#1
0
 public StoryTextPainter(StoryTextEditorControl control)
 {
     m_control = control;
     D2dFactory.EnableResourceSharing(m_control.Handle);
     m_d2dGraphics = D2dFactory.CreateD2dHwndGraphics(m_control.Handle);
     CreateSharedResources();
 }
示例#2
0
        public Canvas2d()
        {

            this.SetStyle(ControlStyles.AllPaintingInWmPaint
                | ControlStyles.Opaque | ControlStyles.UserPaint, true);
            this.ResizeRedraw = true;

            m_d2dGraphics = D2dFactory.CreateD2dHwndGraphics(this.Handle);

            CreateSharedResources();
        }