Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data ImageFlags
- safeImage :: CInt -> Maybe Image
- createImage :: Context -> FileName -> Set ImageFlags -> IO (Maybe Image)
- createImageMem :: Context -> Set ImageFlags -> ByteString -> IO (Maybe Image)
- createImageRGBA :: Context -> CInt -> CInt -> Set 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 #
Instances
createImage :: Context -> FileName -> Set ImageFlags -> IO (Maybe Image) Source #
Creates image by loading it from the disk from specified file name.
createImageMem :: Context -> Set ImageFlags -> ByteString -> IO (Maybe Image) Source #
Creates image by loading it from the specified chunk of memory.
createImageRGBA :: Context -> CInt -> CInt -> Set 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.