Hoogle Search
Within LTS Haskell 24.69 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
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.
-
JuicyPixels Codec.Picture.Types Write a packeable pixel into an image. equivalent to unsafeWritePixel.
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
-
JuicyPixels Codec.Picture.Types Combine, pixel by pixel and component by component the values of 3 different images. Usage example:
averageBrightNess c1 c2 c3 = clamp $ toInt c1 + toInt c2 + toInt c3 where clamp = fromIntegral . min 0 . max 255 toInt :: a -> Int toInt = fromIntegral ziPixelComponent3 averageBrightNess img1 img2 img3
isPrefixOf :: ShortText -> ShortText -> Booltext-short Data.Text.Short Tests whether the first ShortText is a prefix of the second ShortText
>>> isPrefixOf "ab" "abcdef" True
>>> isPrefixOf "ac" "abcdef" False
isPrefixOf "" t == True
isPrefixOf t t == True
isSuffixOf :: ShortText -> ShortText -> Booltext-short Data.Text.Short Tests whether the first ShortText is a suffix of the second ShortText
>>> isSuffixOf "ef" "abcdef" True
>>> isPrefixOf "df" "abcdef" False
isSuffixOf "" t == True
isSuffixOf t t == True