Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- data ImageFlags
- safeImage :: CInt -> Maybe Image
- createImage :: Context -> FileName -> CInt -> IO (Maybe Image)
- createImageMem :: Context -> ImageFlags -> ByteString -> IO (Maybe Image)
- createImageRGBA :: Context -> CInt -> CInt -> ImageFlags -> ByteString -> IO (Maybe Image)
- updateImage :: Context -> Image -> ByteString -> IO ()
- imageSize :: Context -> Image -> IO (CInt, CInt)
- deleteImage :: Context -> Image -> IO ()
- createImage'_ :: Context -> Ptr CChar -> CInt -> IO CInt
- createImageMem'_ :: Context -> CInt -> Ptr CUChar -> CInt -> IO CInt
- createImageRGBA'_ :: Context -> CInt -> CInt -> CInt -> Ptr CUChar -> IO CInt
- updateImage'_ :: Context -> CInt -> Ptr CUChar -> IO ()
- imageSize'_ :: Context -> CInt -> Ptr CInt -> Ptr CInt -> IO ()
- deleteImage'_ :: Context -> CInt -> IO ()
Documentation
data ImageFlags Source #
createImage :: Context -> FileName -> CInt -> IO (Maybe Image) Source #
Creates image by loading it from the disk from specified file name.
createImageMem :: Context -> ImageFlags -> ByteString -> IO (Maybe Image) Source #
Creates image by loading it from the specified chunk of memory.
createImageRGBA :: Context -> CInt -> CInt -> ImageFlags -> ByteString -> IO (Maybe Image) Source #
Creates image from specified image data.
updateImage :: Context -> Image -> ByteString -> IO () Source #
Updates image data specified by image handle.