úΰ+  )(c) Don Stewart 2011, Raphael Javaux 2012BSD3SDon Stewart <dons00@gmail.com> , Raphael Javaux <raphaeljavaux@gmail.com provisional2Repa interface to the DevIL image loading library.None B RThe IL monad. Provides statically-guaranteed access to an initialized IL context.ERGBA, RGB, BGRA and BGR images are 3D repa arrays where indices are #Z :. row :. column :. color channel!. Grey images are 2D repa arrays. The origin ( Z :. 0 :. 0*) is on the lower left point of the image.Running code in the IL& monad. This is a simple wrapper over IOY that guarantees the DevIL library has been initialized before you run functions on it.hReads an image into a repa array. It uses directly the C array using the repa's foreign arrays wrapper.Example: Imain = do x <- runIL $ readImage "/tmp/x.png" .. operations on x ..Note:> The image input type is determined by the filename extension.  Writes an Q to a file. The image array must be represented as foreign buffers. You can use copyS or copyP to convert the array.Note:? The image output type is determined by the filename extension. Initialize the library. Allocates a new image name. 8Sets the image name as the current image for processing. 0Loads the image as the current DevIL image name.+Puts the current image inside a repa array.2Copies the repa array to the current image buffer.Saves the current image. Releases an image with its name.1 !"#$%& '()*+,-./0   * !"#$%& '()*+,-./01      !"#$%&'()*+,-./01repa-devil-0.3.2.6Data.Array.Repa.IO.DevILILImageGreyBGRBGRARGBRGBArunIL readImage writeImageilInitilGenImageName ilBindImage ilLoadImagetoRepafromRepa ilSaveImage ilDeleteImage ImageNameILubyteILintILenum ILbooleanILsizeiILuintilDeleteImagesC ilSaveImageC ilTexImageC ilGetDataCilConvertImageC ilGetIntegerC ilLoadImageC ilBindImageC ilGenImagesC ilEnableC ilOriginFuncCilInitCil_RGBil_RGBAil_BGRil_BGRA il_LUMINANCEil_IMAGE_HEIGHTil_IMAGE_WIDTHil_IMAGE_FORMAT il_IMAGE_TYPEil_UNSIGNED_BYTE