Ejemplo n.º 1
0
    /// <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);
                }
            }
        }
    }
Ejemplo n.º 2
0
 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++;
         }
     }
 }
Ejemplo n.º 3
0
 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++;
         }
     }
 }
Ejemplo n.º 4
0
 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++;
         }
     }
 }
Ejemplo n.º 5
0
 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));
     }
 }