public void SetClipBox(int x1, int y1, int x2, int y2) { userModeClipBox = new RectInt(x1, y1, x2, y2); Reset(); m_vectorClipper.SetClipBox( upscale(x1), upscale(y1), upscale(x2), upscale(y2)); }
public void SetClipBox(int left, int bottom, int right, int top) { left += (int)OffsetOriginX; bottom += (int)OffsetOriginY; right += (int)OffsetOriginX; top += (int)OffsetOriginY; _userModeClipBox = new Q1Rect(left, bottom, right, top); Reset(); _vectorClipper.SetClipBox( upscale(left), upscale(bottom), upscale(right), upscale(top)); }