Safe Haskell | None |
---|---|
Language | Haskell2010 |
- class ToPixelRGBA8 a where
- toRGBA8 :: a -> PixelRGBA8
- fromColorAndOpacity :: PixelRGB8 -> Image Pixel8 -> Image PixelRGBA8
- trimImage :: Image PixelRGBA8 -> (Int, Int) -> (Int, Int) -> Image PixelRGBA8
- patchImage :: Image PixelRGBA8 -> (Int, Int) -> Image PixelRGBA8 -> Image PixelRGBA8
- flipVertically :: Image PixelRGBA8 -> Image PixelRGBA8
- fromDynamicImage :: DynamicImage -> Image PixelRGBA8
- readImageRGBA8 :: FilePath -> IO (Image PixelRGBA8)
- addrImage :: Image PixelRGBA8 -> IO Int
Documentation
class ToPixelRGBA8 a where Source
toRGBA8 :: a -> PixelRGBA8 Source
fromColorAndOpacity :: PixelRGB8 -> Image Pixel8 -> Image PixelRGBA8 Source
:: Image PixelRGBA8 | |
-> (Int, Int) | width, height |
-> (Int, Int) | the left corner point |
-> Image PixelRGBA8 |
Note: Accessing out of the image causes a segfault.
patchImage :: Image PixelRGBA8 -> (Int, Int) -> Image PixelRGBA8 -> Image PixelRGBA8 Source
Note: Accessing out of the image causes a segfault.
readImageRGBA8 :: FilePath -> IO (Image PixelRGBA8) Source