/// <summary> /// Combine two MapApis to create a new MapApi /// </summary> /// <param name="left">Pointer to the first map</param> /// <param name="right">Pointer to the second map</param> /// <returns></returns> public static P4MapApi Join(P4MapApi left, P4MapApi right) { IntPtr pNewMap = Join(left.pMapApi, right.pMapApi); if (pNewMap == IntPtr.Zero) { return(null); } return(new P4MapApi(left.UseUnicode, pNewMap)); }
/// <summary> /// Combine two MapApis to create a new MapApi /// </summary> /// <param name="left">Pointer to the first map</param> /// <param name="leftDir">Orientation of the first map</param> /// <param name="right">Pointer to the second map</param> /// <param name="rightDir">Orientation of the second map</param> /// <returns></returns> public static P4MapApi Join(P4MapApi left, Direction leftDir, P4MapApi right, Direction rightDir) { IntPtr pNewMap = Join(left.pMapApi, leftDir, right.pMapApi, rightDir); if (pNewMap == IntPtr.Zero) { return(null); } return(new P4MapApi(left.UseUnicode, pNewMap)); }