Esempio n. 1
0
        public BnrState()
        {
            _bnr = new Bnr();

            EncodingDefinition = new EncodingDefinition();
            EncodingDefinition.AddPaletteEncoding(0, ImageFormats.Rgb555());
            EncodingDefinition.AddIndexEncoding(0, ImageFormats.I4(BitOrder.LeastSignificantBitFirst), new[] { 0 });
        }
Esempio n. 2
0
        public ECDPNcgrState()
        {
            _ncgr = new ECDPNcgr();

            EncodingDefinition = new EncodingDefinition();
            EncodingDefinition.AddPaletteEncoding(0, new Rgba(5, 5, 5, "BGR"));
            EncodingDefinition.AddIndexEncoding(3, new Index(4), new[] { 0 });
            EncodingDefinition.AddIndexEncoding(4, new Index(8), new[] { 0 });
        }
Esempio n. 3
0
        public NcgrState()
        {
            _ncgr = new Ncgr();

            EncodingDefinition = new EncodingDefinition();
            EncodingDefinition.AddPaletteEncoding(0, new Rgba(5, 5, 5, "BGR"));
            EncodingDefinition.AddIndexEncoding(3, ImageFormats.I4(BitOrder.LeastSignificantBitFirst), new[] { 0 });
            EncodingDefinition.AddIndexEncoding(4, ImageFormats.I8(), new[] { 0 });
        }
Esempio n. 4
0
        public static EncodingDefinition GetEncodingDefinition()
        {
            var definition = new EncodingDefinition();

            definition.AddColorEncodings(ColorFormats);

            definition.AddPaletteEncoding(0, new Rgba(5, 5, 5, "BGR"));
            definition.AddIndexEncodings(IndexFormats.Select(x => (x.Key, new IndexEncodingDefinition(x.Value, new[] { 0 }))).ToArray());

            return(definition);
        }