Editor.MainWindow.pictureBox1_Paint C# (CSharp) Méthode

pictureBox1_Paint() private méthode

private pictureBox1_Paint ( object sender, PaintEventArgs e ) : void
sender object
e PaintEventArgs
Résultat void
        void pictureBox1_Paint(object sender, PaintEventArgs e)
        {
            var m = new System.Drawing.Drawing2D.Matrix();
             m.Translate(-this.hScrollBar.Value, -this.vScrollBar.Value);
             e.Graphics.Transform = m;

             foreach (Item item in this.lstLevel.Items)
            if (item.IsVisible)
               item.Paint(e, State.Normal);

             foreach (Item item in this.lstPhysics.Items)
            if (item.IsVisible)
               item.Paint(e, State.Normal);

             foreach (Item item in this.lstActors.Items)
            if (item.IsVisible)
               item.Paint(e, State.Normal);
        }