Is there a way to pass a format as a string and get the properties of that format? For example, a parameter "FormatOut" might be set to "YUVAP16", and in my code, I want to know a few things. Does that format have an alpha plane? What is BitsPerComponent?
Of course I can get it done with a bunch of IF, but the code then gets very clumsy especially with all the new formats.
|