/// <summary> /// Initialize the graphics buffer (should be called in the forms load event). /// </summary> public void Initialize(Mesh mesh) { renderer = new TopologyRenderer(mesh); zoom.Initialize(this.ClientRectangle); //zoom.ClipMargin = 10.0f; var b = mesh.Bounds; zoom.Update(new BoundingBox((float)b.MinX, (float)b.MaxX, (float)b.MinY, (float)b.MaxY)); InitializeBuffer(); initialized = true; this.Render(); }
public void showImage(Bitmap bitmap) { Zoom.Image = bitmap; Zoom.Update(); }