/// <summary> /// -_-||| /// </summary> /// <param name="H"></param> /// <param name="Length"></param> internal MeasureBoxResult(Hzk H, Point Bound, int Length, int RS, int CS) { if (Length > _maxTextLength) { throw new ArgumentException("Text is too long.", "Text.Length"); } if (Bound.X > _maxTextureSize || Bound.Y > _maxTextureSize) { throw new ArgumentException("Texture size too big.", "BoxSize"); } MyHzk = H; if (Bound.X < MyHzk.MyHzkSize || Bound.Y < MyHzk.MyHzkSize) { throw new ArgumentException("Texture size too small.", "BoxSize"); } Box = Bound; LineStartIndex = new List <int>(); LineWidth = new List <int>(); LineStartIndex.Add(0); CharPosition = new List <Vector2>(Length); CharType = new List <hzkResult>(Length); CharData = new List <byte[]>(Length); CurrentX = 0; CurrentY = 0; RowStride = RS; ColumnStride = CS; }//End Sub New
/// <summary> /// -_-||| /// </summary> /// <param name="H"></param> /// <param name="Length"></param> internal MeasureResult(Hzk H, int Length, int RS, int CS) { if (Length > _maxTextLength) { throw new ArgumentException("Text is too long.", "Text.Length"); } MyHzk = H; LineStartIndex = new List <int>(); LineWidth = new List <int>(); LineStartIndex.Add(0); CharPosition = new List <Vector2>(Length); CharType = new List <hzkResult>(Length); CharData = new List <byte[]>(Length); CurrentX = 0; CurrentY = 0; RowStride = RS; ColumnStride = CS; }//End Sub New