ImageMagick.ChannelMoments.ChannelMoments C# (CSharp) Метод

ChannelMoments() приватный Метод

private ChannelMoments ( PixelChannel channel, IntPtr instance ) : System
channel PixelChannel
instance IntPtr
Результат System
    private ChannelMoments(PixelChannel channel, IntPtr instance)
    {
      Channel = channel;

      NativeChannelMoments nativeInstance = new NativeChannelMoments(instance);
      Centroid = PointD.FromPointInfo(nativeInstance.Centroid);
      EllipseAngle = nativeInstance.EllipseAngle;
      EllipseAxis = PointD.FromPointInfo(nativeInstance.EllipseAxis);
      EllipseEccentricity = nativeInstance.EllipseEccentricity;
      EllipseIntensity = nativeInstance.EllipseIntensity;
      SetHuInvariants(nativeInstance);
    }