GetWPFBitmap() private method

private GetWPFBitmap ( MipMap mip, int maxDimension, bool ShowAlpha ) : System.Windows.Media.Imaging.BitmapSource
mip MipMap
maxDimension int
ShowAlpha bool
return System.Windows.Media.Imaging.BitmapSource
        /// <summary>
        /// Creates a channel from an image. Can merge together with other channels to form a proper image again.
        /// MUST BE GRAYSCALE (PixelFormats.Gray8).
        /// </summary>
        /// <param name="mainPath">Path to channel.</param>
        public MergeChannelsImage(string mainPath)
        {
            FilePath = mainPath;

            var img = new ImageEngineImage(mainPath);
            {
                Width     = img.Width;
                Height    = img.Height;
                Thumbnail = img.GetWPFBitmap(128);
                //Pixels = img.MipMaps[0].Pixels;
            }
        }