While setting an image's
imageCodecInfo( system.drawing. imaging.imageco decinfo) as
System.Drawing. Imaging.ImageCo decInfo.GetImag eEncoders(), i found out
that "GetImageEncode sr(1)" refers to jpeg and "GetImageEncode rs(0)
refers to BMP and "GetImageEncode rs(4) refers to PNG... I found by
trying array index numbers, the surprsing thing is there was no
definition about which array item refers to what.
There is no explict info on MSDN or on other code sites. So, if i
didn't try which GetImageEncoder s array member refers to which
extension(forma t), how would i find and know the correct
format(extensio n) type without trying myself? It must be shown on MSDN
or elsewhere.
imageCodecInfo( system.drawing. imaging.imageco decinfo) as
System.Drawing. Imaging.ImageCo decInfo.GetImag eEncoders(), i found out
that "GetImageEncode sr(1)" refers to jpeg and "GetImageEncode rs(0)
refers to BMP and "GetImageEncode rs(4) refers to PNG... I found by
trying array index numbers, the surprsing thing is there was no
definition about which array item refers to what.
There is no explict info on MSDN or on other code sites. So, if i
didn't try which GetImageEncoder s array member refers to which
extension(forma t), how would i find and know the correct
format(extensio n) type without trying myself? It must be shown on MSDN
or elsewhere.