Example #1
0
        private void ImportImageData()
        {
            if (cb8Bit.Checked)
            {
                switch (_choice)
                {
                case PaletteChoice.BASE:
                    ResourceElement.ImportImageDataAs8Bit(_bitmap, BasePalette, true, out _);
                    break;

                case PaletteChoice.USER:
                    ResourceElement.ImportImageDataAs8Bit(_bitmap, UserPalette, false, out _);
                    break;

                case PaletteChoice.EXISTING:
                    ResourceElement.ImportImageDataAs8Bit(_bitmap, PrevPalette, false, out _);
                    break;
                }
            }
            else
            {
                ResourceElement.ImportImageDataAs15Bit(_bitmap);
            }
            RedrawImage();
        }