-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Reading and writing of tga image files -- -- TGA is a very simple format (like Bitmap), but in contrast to Bitmap -- also stores an alpha channel for transparency. Although tga might be -- outdated it had to be implemented because stb-image only supports -- reading. This version supports raw RGB24 and RGB32 data without -- palettes or run length encoding @package tga @version 0.2 module Graphics.Formats.TGA.TGA readTGA :: String -> IO TGAData writeTGA :: String -> TGAData -> IO () data TGAData TGAData :: ByteString -> Picture -> Int -> Int -> Int -> Int -> TGAData picId :: TGAData -> ByteString picture :: TGAData -> Picture xcoord :: TGAData -> Int ycoord :: TGAData -> Int width :: TGAData -> Int height :: TGAData -> Int data Picture RGB24 :: ImageData -> Picture RGB32 :: ImageData -> Picture PaletteUncompressed :: Palette -> ImageData -> Picture MonoUncompressed :: ImageData -> Picture