protected override void OnPaint() { var cr = gameObject; var pos = new position { width = (int)_size.x, height = (int)_size.y, depth = (int)_size.z, x = 0, y = 0, z = 0, }; if (_doc != null) { _doc.draw(cr, 0, 0, 0, pos); } }
protected override void OnPaint(PaintEventArgs e) { using (var cr = CreateGraphics()) { var rect = cr.VisibleClipBounds; var pos = new position { width = (int)rect.Width, height = (int)rect.Height, x = (int)rect.X, y = (int)rect.Y }; if (_html != null) { _html.draw(cr, 0, 0, 0, pos); } } }
protected override void OnPaint(PaintEventArgs e) { using (var cr = CreateGraphics()) { var rect = cr.VisibleClipBounds; var clip = new position { x = (int)rect.X, y = (int)rect.Y, width = (int)rect.Width, height = (int)rect.Height, }; if (_doc != null) { _doc.draw(cr, 0, 0, 0, clip); } } }
protected override void OnPaint(PaintEventArgs e) { //base.OnPaint(e); //cr.DrawRectangle(0, 0, Width, Height); //cr.SetDS //cr->set_source_rgb(1, 1, 1); //cr->fill(); using (var cr = CreateGraphics()) { var rect = cr.VisibleClipBounds; var pos = new position { width = (int)rect.Width, height = (int)rect.Height, x = (int)rect.X, y = (int)rect.Y }; if (_html != null) { _html.draw(cr, 0, 0, 0, pos); } } }