public static void MultClip(Clip2D b) { RECT a; a.left = (int)b.lt.X; a.top = (int)b.lt.Y; a.right = (int)b.rb.X; a.bottom = (int)b.rb.Y; RECT e; e.left = (int)Clip.lt.X; e.top = (int)Clip.lt.Y; e.right = (int)Clip.rb.X; e.bottom = (int)Clip.rb.Y; RECT rz; rz.left = 0; rz.right = 0; rz.top = 0; rz.bottom = 0; SafeWind32Api.IntersectRect(ref rz, ref a, ref e); Clip.lt.X = rz.left; Clip.lt.Y = rz.top; Clip.rb.X = rz.right; Clip.rb.Y = rz.bottom; }
public static void PopClip() { Clip = ClipStack.Pop(); }