Exemple #1
0
        public void Free()
        {
            Point?.Free();
            Point = new Point2F(internalStruct.point);

            Extent?.Free();
            Extent = new Point2F(internalStruct.extent);

            if (internalStructPtr != IntPtr.Zero)
            {
                StructMarshal.FreeStructPtr <InternalStruct>(internalStructPtr);
            }
            internalStructPtr = IntPtr.Zero;
        }
Exemple #2
0
 public RectF(string s)
 {
     string[] strings = s.Split(' ');
     Point  = GenericMarshal.StringTo <Point2F>(string.Join(' ', strings.Skip(0).Take(2)));
     Extent = GenericMarshal.StringTo <Point2F>(string.Join(' ', strings.Skip(2).Take(2)));
 }