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()); }
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()); }