c# - How to get the Rating of image files from Exif library -


i using exifextractor-library-to-extract-exif-information.it works fine problem want extract image rating means (star rating) in exif don't find property rating or star name getting problem how star rating of images.

i using property find rating , works fine many time it's showing me wrong value.the property is

string rate = ((system.drawing.image)((er).bmp)).propertyitems[1].value[0].tostring(); 

so please tell me how can achieve rating value of images.

example:-

enter image description here

this image having rating of 3 stars how value.

thanks in advance.

finally solve problem.the propertyid find image rating 18246 replace code like

propertyitem propitem = er.bmp.getpropertyitem(18246); string rating = bitconverter.toint16(propitem.value, 0).tostring(); 

it works fine me.


Comments