/// <summary> /// Trim the glyphs, ensuring that they will never go past the specified bounds. /// </summary> public void Trim(int xMin, int yMin, int xMax, int yMax) { if (isValid) { for (int i = 0, imax = mSaved.Count; i < imax; ++i) { BMGlyph glyph = mSaved[i]; if (glyph != null) { glyph.Trim(xMin, yMin, xMax, yMax); } } } }
public void Trim(int xMin, int yMin, int xMax, int yMax) { if (this.isValid) { int i = 0; int count = this.mSaved.Count; while (i < count) { BMGlyph bMGlyph = this.mSaved[i]; if (bMGlyph != null) { bMGlyph.Trim(xMin, yMin, xMax, yMax); } i++; } } }
public void Trim(int xMin, int yMin, int xMax, int yMax) { if (this.isValid) { int num = 0; int count = this.mSaved.Count; while (num < count) { BMGlyph glyph = this.mSaved[num]; if (glyph != null) { glyph.Trim(xMin, yMin, xMax, yMax); } num++; } } }
public void Trim(Int32 xMin, Int32 yMin, Int32 xMax, Int32 yMax) { if (this.isValid) { Int32 i = 0; Int32 count = this.mSaved.Count; while (i < count) { BMGlyph bmglyph = this.mSaved[i]; if (bmglyph != null) { bmglyph.Trim(xMin, yMin, xMax, yMax); } i++; } } }
static public int Trim(IntPtr l) { try { BMGlyph self = (BMGlyph)checkSelf(l); System.Int32 a1; checkType(l, 2, out a1); System.Int32 a2; checkType(l, 3, out a2); System.Int32 a3; checkType(l, 4, out a3); System.Int32 a4; checkType(l, 5, out a4); self.Trim(a1, a2, a3, a4); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }