Ejemplo n.º 1
0
        private TagFileName GetDecalBitmap(TagFileName tfn)
        {
            TagFileName bitmap_name = null;

            if (tfn.Exists)
            {
                TagBase tagdata = new TagBase();
                tagdata.LoadTagBuffer(tfn);
                BinaryReader br = new BinaryReader(tagdata.Stream);

                Decal obj = new Decal();
                obj.Read(br);
                obj.ReadChildData(br);
                bitmap_name = new TagFileName(obj.DecalValues.Map.Value, "bitm", tfn.Version);
                //model_name = new TagFileName(obj.ObjectValues.Model.Value, "mod2", tfn.Version);
            }
            return(bitmap_name);
        }