Exemplo n.º 1
0
        private void OnImportFrameMetadata(T texture, int frame, Metadata.MetadataReader metadata, IList <Image> images, Image referenceImage, int mipmapsCount)
        {
            GenericDictionary formatSpecific = new GenericDictionary();

            InteropUtils.ReadFrom(metadata, formatSpecific);
            TextureFormat segment = CreateFrameForGeneralTexture(texture, frame, formatSpecific, images, referenceImage, mipmapsCount);

            segment.FormatSpecificData = formatSpecific;
        }
Exemplo n.º 2
0
        private T OnImportGeneralTextureMetadata(Metadata.MetadataReader metadata)
        {
            GenericDictionary formatSpecific = new GenericDictionary();

            InteropUtils.ReadFrom(metadata, formatSpecific);
            T result = CreateGeneralTextureFromFormatSpecificData(formatSpecific);

            result.FormatSpecificData = formatSpecific;

            return(result);
        }