internal static IntPtr GetInstance(PixelCollection instance) { if (instance == null) return IntPtr.Zero; return instance._NativeInstance.Instance; } }