| Safe Haskell | None |
|---|
Graphics.Gloss.Juicy
- fromDynamicImage :: DynamicImage -> Maybe Picture
- fromImageRGBA8 :: Image PixelRGBA8 -> Picture
- fromImageRGB8 :: Image PixelRGB8 -> Picture
- fromImageY8 :: Image Pixel8 -> Picture
- fromImageYA8 :: Image PixelYA8 -> Picture
- fromImageYCbCr8 :: Image PixelYCbCr8 -> Picture
Documentation
fromDynamicImage :: DynamicImage -> Maybe PictureSource
Tries to convert a DynamicImage from JuicyPixels to a gloss Picture. All formats except RGBF and YF should successfully
yield a Picture.
fromImageRGBA8 :: Image PixelRGBA8 -> PictureSource
O(N) conversion from PixelRGBA8 image to gloss Picture, where N is the number of pixels.
fromImageRGB8 :: Image PixelRGB8 -> PictureSource
Creation of a gloss Picture by promoting (through promoteImage) the PixelRGB8 image to PixelRGBA8 and calling fromImageRGBA8.
fromImageY8 :: Image Pixel8 -> PictureSource
Creation of a gloss Picture by promoting (through promoteImage) the PixelY8 image to PixelRGBA8 and calling fromImageRGBA8.
fromImageYA8 :: Image PixelYA8 -> PictureSource
Creation of a gloss Picture by promoting (through promoteImage) the PixelYA8 image to PixelRGBA8 and calling fromImageRGBA8.
fromImageYCbCr8 :: Image PixelYCbCr8 -> PictureSource
Creation of a gloss Picture by promoting (through promoteImage) the PixelYCbCr8 image to PixelRGBA8 and calling fromImageRGBA8.