Hoogle Search

Within LTS Haskell 24.58 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. promotePixel :: ColorConvertible a b => a -> b

    JuicyPixels Codec.Picture.Types

    Convert a pixel type to another pixel type. This operation should never lose any data.

  2. readPackedPixelAt :: forall m px . (Pixel px, PackeablePixel px, Storable (PackedRepresentation px), PrimMonad m) => MutableImage (PrimState m) px -> Int -> m px

    JuicyPixels Codec.Picture.Types

    Read a packeable pixel from an image. Equivalent to unsafeReadPixel

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

    JuicyPixels Codec.Picture.Types

    Same as pixelAt but for mutable images.

  4. unpackPixel :: PackeablePixel a => PackedRepresentation a -> a

    JuicyPixels Codec.Picture.Types

    Inverse transformation, to speed up reading

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

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

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

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

    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)

  8. unsafeWritePixelBetweenAt :: (PrimMonad m, Pixel px, PackeablePixel px, Storable (PackedRepresentation px)) => MutableImage (PrimState m) px -> px -> Int -> Int -> m ()

    JuicyPixels Codec.Picture.Types

    Fill a packeable pixel between two bounds.

  9. writePackedPixelAt :: (Pixel px, PackeablePixel px, Storable (PackedRepresentation px), PrimMonad m) => MutableImage (PrimState m) px -> Int -> px -> m ()

    JuicyPixels Codec.Picture.Types

    Write a packeable pixel into an image. equivalent to unsafeWritePixel.

  10. writePixel :: (Pixel a, PrimMonad m) => MutableImage (PrimState m) a -> Int -> Int -> a -> m ()

    JuicyPixels Codec.Picture.Types

    Write a pixel in a mutable image at position x y

Page 110 of many | Previous | Next