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.
pixelMapXY :: (Pixel a, Pixel b) => (Int -> Int -> a -> b) -> Image a -> Image bJuicyPixels Codec.Picture.Types Just like pixelMap only the function takes the pixel coordinates as additional parameters.
pixelOpacity :: Pixel a => a -> PixelBaseComponent aJuicyPixels Codec.Picture.Types 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.
promotePixel :: ColorConvertible a b => a -> bJuicyPixels Codec.Picture.Types Convert a pixel type to another pixel type. This operation should never lose any data.
-
JuicyPixels Codec.Picture.Types Read a packeable pixel from an image. Equivalent to unsafeReadPixel
readPixel :: (Pixel a, PrimMonad m) => MutableImage (PrimState m) a -> Int -> Int -> m aJuicyPixels Codec.Picture.Types Same as pixelAt but for mutable images.
unpackPixel :: PackeablePixel a => PackedRepresentation a -> aJuicyPixels Codec.Picture.Types Inverse transformation, to speed up reading
unsafePixelAt :: Pixel a => Vector (PixelBaseComponent a) -> Int -> aJuicyPixels Codec.Picture.Types 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.Types 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.Types 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)
-
JuicyPixels Codec.Picture.Types Fill a packeable pixel between two bounds.