Reading Metadata property of GifBitmapDecoder…why is it null?
问题 How can I read the delay, left and top offset data for each frame of a gif? I've gotten this far. Load the Gif var myGif = new GifBitmapDecoder(uri, BitmapCreateOptions.PreservePixelFormat, BitmapCacheOption.OnLoad); Get a frame var frame = myGif.Frames[i]; From MSDN: Native Image Format Metadata Queries read (ushort)Metadata.GetQuery("/grctlext/Delay") , (ushort)Metadata.GetQuery("/imgdesc/Left") , (ushort)Metadata.GetQuery("/imgdesc/Top") But two things don't work. First the Metadata