Update() protected method

protected Update ( ) : void
return void
Ejemplo n.º 1
0
        /// <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();
        }
Ejemplo n.º 2
0
 public void showImage(Bitmap bitmap)
 {
     Zoom.Image = bitmap;
     Zoom.Update();
 }