Exemple #1
0
        protected override System.Drawing.Image GetImage(int activeFrame, int activePalette)
        {
            ImageDecoderIndexed decoder = new ImageDecoderIndexed(imageData,
                                                                  Width, Height,
                                                                  IndexCodec.FromBitPerPixel(4), null,
                                                                  new SwizzleFilter(Width, Height, 4));

            return(decoder.DecodeImage());
        }
Exemple #2
0
        protected override System.Drawing.Image GetImage(int activeFrame, int activePalette)
        {
            IndexCodec codec = IndexCodec.FromBitPerPixel(bpps[activeFrame]);

            ImageDecoderIndexed decoder = new ImageDecoderIndexed(imagesData[activeFrame],
                                                                  widths[activeFrame],
                                                                  heights[activeFrame],
                                                                  codec, palettes[activeFrame],
                                                                  new SwizzleFilter((int)widths[activeFrame], (int)heights[activeFrame], bpps[activeFrame]));

            return(decoder.DecodeImage());
        }