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.

  1. pixelAt :: Pixel a => Image a -> Int -> Int -> a

    JuicyPixels 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

  2. pixelBaseIndex :: Pixel a => Image a -> Int -> Int -> Int

    JuicyPixels Codec.Picture

    Calculate the index for the begining of the pixel

  3. pixelMap :: (Pixel a, Pixel b) => (a -> b) -> Image a -> Image b

    JuicyPixels 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)
    

  4. pixelOpacity :: Pixel a => a -> PixelBaseComponent a

    JuicyPixels 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.

  5. readPixel :: (Pixel a, PrimMonad m) => MutableImage (PrimState m) a -> Int -> Int -> m a

    JuicyPixels Codec.Picture

    Same as pixelAt but for mutable images.

  6. unsafePixelAt :: Pixel a => Vector (PixelBaseComponent a) -> Int -> a

    JuicyPixels 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)

  7. unsafeReadPixel :: (Pixel a, PrimMonad m) => STVector (PrimState m) (PixelBaseComponent a) -> Int -> m 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)

  8. unsafeWritePixel :: (Pixel a, PrimMonad m) => STVector (PrimState m) (PixelBaseComponent a) -> Int -> a -> m ()

    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)

  9. 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

  10. gfPixels :: GifFrame -> Image Pixel8

    JuicyPixels Codec.Picture.Gif

    Image pixels

Page 104 of many | Previous | Next