Create() static private method

static private Create ( PixelChannel channel, IntPtr instance ) : ChannelMoments
channel PixelChannel
instance IntPtr
return ChannelMoments
示例#1
0
        private void AddChannel(IntPtr list, PixelChannel channel)
        {
            IntPtr instance = NativeMoments.GetInstance(list, channel);

            ChannelMoments result = ChannelMoments.Create(channel, instance);

            if (result != null)
            {
                _channels.Add(result.Channel, result);
            }
        }