Esempio n. 1
0
        /// <summary>
        /// Set the alpha channel of the current image from the given DDS file stream.
        /// </summary>
        /// <param name="image"><see cref="Stream"/> containing a DDS image.</param>
        public void SetAlphaFromGreyscale(Stream image)
        {
            DdsFile greyscale = new DdsFile();

            greyscale.Load(image, false);
            ddsFile.SetAlphaFromGreyscale(greyscale);
            ckb_CheckedChanged(null, null);
        }