System.Drawing.Graphics.ResetTransform C# (CSharp) Method

ResetTransform() public method

public ResetTransform ( ) : void
return void
        public void ResetTransform()
        {
            modelMatrix.Reset();
            applyModelView();
        }

Usage Example

Example #1
0
 public void draw(System.Drawing.Graphics g)
 {
     g.TranslateTransform(this.x, this.y);
     g.RotateTransform(rotation);
     g.DrawImage(canon, (0 - canon.Width / 2), (0 - canon.Height / 2), canon.Width, canon.Height);
     g.ResetTransform();
 }
All Usage Examples Of System.Drawing.Graphics::ResetTransform