- string word;
-
- in>>word;
- if(word=="COLOR_INDEX")
- fmt=COLOR_INDEX;
- else if(word=="STENCIL_INDEX")
- fmt=STENCIL_INDEX;
- else if(word=="DEPTH_COMPONENT")
- fmt=DEPTH_COMPONENT;
- else if(word=="RED")
- fmt=RED;
- else if(word=="GREEN")
- fmt=GREEN;
- else if(word=="BLUE")
- fmt=BLUE;
- else if(word=="ALPHA")
- fmt=ALPHA;
- else if(word=="RGB")
- fmt=RGB;
- else if(word=="RGBA")
- fmt=RGBA;
- else if(word=="BGR")
- fmt=BGR;
- else if(word=="BGRA")
- fmt=BGRA;
- else if(word=="LUMINANCE")
- fmt=LUMINANCE;
- else if(word=="LUMINANCE_ALPHA")
- fmt=LUMINANCE_ALPHA;
+ if(conv.get()=="COLOR_INDEX")
+ fmt = COLOR_INDEX;
+ else if(conv.get()=="STENCIL_INDEX")
+ fmt = STENCIL_INDEX;
+ else if(conv.get()=="DEPTH_COMPONENT")
+ fmt = DEPTH_COMPONENT;
+ else if(conv.get()=="RED")
+ fmt = RED;
+ else if(conv.get()=="GREEN")
+ fmt = GREEN;
+ else if(conv.get()=="BLUE")
+ fmt = BLUE;
+ else if(conv.get()=="ALPHA")
+ fmt = ALPHA;
+ else if(conv.get()=="RGB")
+ fmt = RGB;
+ else if(conv.get()=="RGBA")
+ fmt = RGBA;
+ else if(conv.get()=="BGR")
+ fmt = BGR;
+ else if(conv.get()=="BGRA")
+ fmt = BGRA;
+ else if(conv.get()=="LUMINANCE")
+ fmt = LUMINANCE;
+ else if(conv.get()=="LUMINANCE_ALPHA")
+ fmt = LUMINANCE_ALPHA;