AGS.Editor.SpriteSelector.AskAboutAlphaChannel C# (CSharp) Метод

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

private AskAboutAlphaChannel ( Bitmap bmp ) : bool
bmp System.Drawing.Bitmap
Результат bool
        private bool AskAboutAlphaChannel(Bitmap bmp)
        {
            bool useAlphaChannel = false;
            if ((bmp.PixelFormat == PixelFormat.Format32bppArgb) && (Factory.AGSEditor.CurrentGame.Settings.ColorDepth == GameColorDepth.TrueColor))
            {
                if (Factory.GUIController.ShowQuestion("This image appears to have an alpha channel. Do you want to use it?") == DialogResult.Yes)
                {
                    useAlphaChannel = true;
                }
            }
            return useAlphaChannel;
        }