Hoogle Search
Within LTS Haskell 24.25 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
pixelAt :: Pixel a => Image a -> Int -> Int -> aJuicyPixels Codec.Picture Extract a pixel at a given position, (x, y), the origin is assumed to be at the corner top left, positive y to the bottom of the image
pixelBaseIndex :: Pixel a => Image a -> Int -> Int -> IntJuicyPixels Codec.Picture Calculate the index for the begining of the pixel
pixelMap :: (Pixel a, Pixel b) => (a -> b) -> Image a -> Image bJuicyPixels Codec.Picture map equivalent for an image, working at the pixel level. Little example : a brightness function for an rgb image
brightnessRGB8 :: Int -> Image PixelRGB8 -> Image PixelRGB8 brightnessRGB8 add = pixelMap brightFunction where up v = fromIntegral (fromIntegral v + add) brightFunction (PixelRGB8 r g b) = PixelRGB8 (up r) (up g) (up b)
pixelOpacity :: Pixel a => a -> PixelBaseComponent aJuicyPixels Codec.Picture Return the opacity of a pixel, if the pixel has an alpha layer, return the alpha value. If the pixel doesn't have an alpha value, return a value representing the opaqueness.
readPixel :: (Pixel a, PrimMonad m) => MutableImage (PrimState m) a -> Int -> Int -> m aJuicyPixels Codec.Picture Same as pixelAt but for mutable images.
unsafePixelAt :: Pixel a => Vector (PixelBaseComponent a) -> Int -> aJuicyPixels Codec.Picture Unsafe version of pixelAt, read a pixel at the given index without bound checking (if possible). The index is expressed in number (PixelBaseComponent a)
-
JuicyPixels Codec.Picture Unsafe version of readPixel, read a pixel at the given position without bound checking (if possible). The index is expressed in number (PixelBaseComponent a)
-
JuicyPixels Codec.Picture Unsafe version of writePixel, write a pixel at the given position without bound checking. This can be _really_ unsafe. The index is expressed in number (PixelBaseComponent a)
writePixel :: (Pixel a, PrimMonad m) => MutableImage (PrimState m) a -> Int -> Int -> a -> m ()JuicyPixels Codec.Picture Write a pixel in a mutable image at position x y
gfPixels :: GifFrame -> Image Pixel8JuicyPixels Codec.Picture.Gif Image pixels