c# - MonoMac System.Drawing.Image.GetPropertyItem(0x5100) -
recently, trying answer so question loading frames (bitmap , duration) of animated gifs . code can found on pastenbin . while doing additional tests on code before moving dev library, noticed there problem line of code: //get times stored in gif //propertytagframedelay ((propid) 0x5100) comes gdiplusimaging.h //more info on http://msdn.microsoft.com/en-us/library/windows/desktop/ms534416(v=vs.85).aspx var times = img.getpropertyitem(0x5100).value; when running on windows .net using ( example gif ), array of same size amount of frames in animated gif , filled durations of frames. in case byte[20] converts (bitconverter.toint32()) 5 durations: [75,0,0,0,125,0,0,0,125,0,0,0,125,0,0,0,250,0,0,0] on monomac however, line of code same example gif returns byte[4] converts 1 duration (the first): [75,0,0,0] i tested 10 different gif's , result same. on windows durations in byte[], while monomac lists first duration: [x,0,0,0] [75,0,0,0] [50,0,0,0] [125,0,0,0] lo