nanovg-0.8.1.0: Haskell bindings for nanovg
Safe HaskellSafe-Inferred
LanguageHaskell2010

NanoVG.Internal.Image

Synopsis

Documentation

data ImageFlags Source #

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.

imageSize :: Context -> Image -> IO (CInt, CInt) Source #

Returns the dimensions of a created image.

deleteImage :: Context -> Image -> IO () Source #

Deletes created image.