private ConnectedComponent(IntPtr instance) { Centroid = PointD.FromPointInfo(NativeConnectedComponent.GetCentroid(instance)); Color = NativeConnectedComponent.GetColor(instance); Height = NativeConnectedComponent.GetHeight(instance); Id = NativeConnectedComponent.GetId(instance); Width = NativeConnectedComponent.GetWidth(instance); X = NativeConnectedComponent.GetX(instance); Y = NativeConnectedComponent.GetY(instance); }
private ConnectedComponent(IntPtr instance) { Area = NativeConnectedComponent.GetArea(instance); Centroid = NativeConnectedComponent.GetCentroid(instance).ToPointD(); Color = NativeConnectedComponent.GetColor(instance); Height = NativeConnectedComponent.GetHeight(instance); Id = NativeConnectedComponent.GetId(instance); Width = NativeConnectedComponent.GetWidth(instance); X = NativeConnectedComponent.GetX(instance); Y = NativeConnectedComponent.GetY(instance); }