PageRenderTime 46ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/freeimage/ImageFormat.ooc

http://github.com/tsion/ooc-freeimage
Unknown | 50 lines | 46 code | 4 blank | 0 comment | 0 complexity | 468e470cafec666ffecba81d81f95266 MD5 | raw file
  1. use freeimage
  2. import structs/ArrayList, text/StringTokenizer
  3. ImageFormat: extern(FREE_IMAGE_FORMAT) enum {
  4. unknown: extern(FIF_UNKNOWN)
  5. bmp: extern(FIF_BMP)
  6. ico: extern(FIF_ICO)
  7. jpeg: extern(FIF_JPEG)
  8. jgn: extern(FIF_JNG)
  9. koala: extern(FIF_KOALA)
  10. lbm: extern(FIF_LBM)
  11. iff: extern(FIF_IFF)
  12. mng: extern(FIF_MNG)
  13. pbm: extern(FIF_PBM)
  14. pbmraw: extern(FIF_PBMRAW)
  15. pcd: extern(FIF_PCD)
  16. pcx: extern(FIF_PCX)
  17. pgm: extern(FIF_PGM)
  18. pgmraw: extern(FIF_PGMRAW)
  19. png: extern(FIF_PNG)
  20. ppm: extern(FIF_PPM)
  21. ppmraw: extern(FIF_PPMRAW)
  22. ras: extern(FIF_RAS)
  23. targa: extern(FIF_TARGA)
  24. tiff: extern(FIF_TIFF)
  25. wbmp: extern(FIF_WBMP)
  26. psd: extern(FIF_PSD)
  27. cut: extern(FIF_CUT)
  28. xbm: extern(FIF_XBM)
  29. xpm: extern(FIF_XPM)
  30. dds: extern(FIF_DDS)
  31. gif: extern(FIF_GIF)
  32. hdr: extern(FIF_HDR)
  33. faxg3: extern(FIF_FAXG3)
  34. sgi: extern(FIF_SGI)
  35. exr: extern(FIF_EXR)
  36. j2k: extern(FIF_J2K)
  37. jp2: extern(FIF_JP2)
  38. pfm: extern(FIF_PFM)
  39. pict: extern(FIF_PICT)
  40. raw: extern(FIF_RAW)
  41. // toString: extern(FreeImage_GetFormatFromFIF) func -> String
  42. // extensionListString: extern(FreeImage_GetFIFExtensionList) func -> String
  43. // extensionList: func -> ArrayList<String> {
  44. // extensionListString() split(',') toArrayList()
  45. // }
  46. }