public void Transform(int X, int Y, float ScaleX, float ScaleY) { this.transFormed = true; this.oldMode = Win32.SetGraphicsMode(this.hdc, 2); Win32.XFORM xform1 = new Win32.XFORM(ScaleX, 0f, 0f, ScaleY, X * ScaleX, Y * ScaleY); Win32.SetWorldTransform(this.hdc, ref xform1); }
public void EndTransform() { if (this.transFormed) { Win32.XFORM xform1 = new Win32.XFORM(1f, 0f, 0f, 1f, 0f, 0f); Win32.SetWorldTransform(this.hdc, ref xform1); this.transFormed = false; } }