public StoryTextPainter(StoryTextEditorControl control) { m_control = control; D2dFactory.EnableResourceSharing(m_control.Handle); m_d2dGraphics = D2dFactory.CreateD2dHwndGraphics(m_control.Handle); CreateSharedResources(); }
public Canvas2d() { this.SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.Opaque | ControlStyles.UserPaint, true); this.ResizeRedraw = true; m_d2dGraphics = D2dFactory.CreateD2dHwndGraphics(this.Handle); CreateSharedResources(); }