Exemple #1
0
        // entries must not be compressed
        public XCImage(
            byte[] entries,
            int width,
            int height,
            Palette pal,
            int idx)
        {
            fileNum  = idx;
            this.idx = entries;
            palette  = pal;

            if (pal != null)
            {
                image = Bmp.MakeBitmap8(
                    width,
                    height,
                    entries,
                    pal.Colors);
            }
        }