public static HOCRBox Deserialize(Stream stream) { HOCRBox hocrBox = new HOCRBox(); hocrBox.DeserializeOcr(HSerializedItem.Deserialize(stream)); return(hocrBox); }
public HOCRBox Clone() { HSerializedItem serializedItemHandle = this.SerializeOcr(); HOCRBox hocrBox = new HOCRBox(); hocrBox.DeserializeOcr(serializedItemHandle); serializedItemHandle.Dispose(); return(hocrBox); }
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); }
internal static int LoadNew(IntPtr proc, int parIndex, int err, out HOCRBox obj) { obj = new HOCRBox(HTool.UNDEF); return(obj.Load(proc, parIndex, err)); }