Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. colorOutput_t *out = NULL;
  2.  
  3. //yi->paramsClearAll();
  4. yi->paramsSetString("type", "tga");
  5. yi->paramsSetInt("width", 640);
  6. yi->paramsSetInt("height", 480);
  7. imageHandler_t *ih = yi->createImageHandler("outFile", true);
  8.  
  9. if(ih)
  10. {
  11. out = new imageOutput_t(ih, "test.png", 0, 0);
  12. if(!out) return 1;
  13. }
  14. else return 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement