Exemple #1
0
        public static HOCRBox Deserialize(Stream stream)
        {
            HOCRBox hocrBox = new HOCRBox();

            hocrBox.DeserializeOcr(HSerializedItem.Deserialize(stream));
            return(hocrBox);
        }
Exemple #2
0
        public HOCRBox Clone()
        {
            HSerializedItem serializedItemHandle = this.SerializeOcr();
            HOCRBox         hocrBox = new HOCRBox();

            hocrBox.DeserializeOcr(serializedItemHandle);
            serializedItemHandle.Dispose();
            return(hocrBox);
        }
Exemple #3
0
        internal static int LoadNew(IntPtr proc, int parIndex, int err, out HOCRBox[] obj)
        {
            HTuple tuple;

            err = HTuple.LoadNew(proc, parIndex, err, out tuple);
            obj = new HOCRBox[tuple.Length];
            for (int index = 0; index < tuple.Length; ++index)
            {
                obj[index] = new HOCRBox(tuple[index].IP);
            }
            return(err);
        }
Exemple #4
0
 internal static int LoadNew(IntPtr proc, int parIndex, int err, out HOCRBox obj)
 {
     obj = new HOCRBox(HTool.UNDEF);
     return(obj.Load(proc, parIndex, err));
 }