Hoogle Search

Within LTS Haskell 24.35 (ghc-9.10.3)

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

  1. SourceBitmap :: SourceFormat

    JuicyPixels Codec.Picture.Metadata

    No documentation available.

  2. WindowsBitmapColorSpace :: ByteString -> ColorSpace

    JuicyPixels Codec.Picture.Metadata

    No documentation available.

  3. foldMap :: Monoid m => (Elem Keys -> m) -> Metadatas -> m

    JuicyPixels Codec.Picture.Metadata

    foldMap equivalent for metadatas.

  4. TagColorMap :: ExifTag

    JuicyPixels Codec.Picture.Metadata.Exif

    Short

  5. imageToBitmap :: DynamicImage -> ByteString

    JuicyPixels Codec.Picture.Saving

    This function will try to do anything to encode an image as bitmap, make all color conversion and such. Equivalent of decodeImage for Bitmap encoding

  6. class (Pixel a, Pixel PixelBaseComponent a) => LumaPlaneExtractable a

    JuicyPixels Codec.Picture.Types

    Helper class to help extract a luma plane out of an image or a pixel

  7. colorMap :: Pixel a => (PixelBaseComponent a -> PixelBaseComponent a) -> a -> a

    JuicyPixels Codec.Picture.Types

    Apply a function to each component of a pixel. If the color type possess an alpha (transparency channel), it is treated like the other color components.

  8. dynamicMap :: (forall pixel . Pixel pixel => Image pixel -> a) -> DynamicImage -> a

    JuicyPixels Codec.Picture.Types

    Helper function to help extract information from dynamic image. To get the width of a dynamic image, you can use the following snippet:

    dynWidth :: DynamicImage -> Int
    dynWidth img = dynamicMap imageWidth img
    

  9. dynamicPixelMap :: (forall pixel . Pixel pixel => Image pixel -> Image pixel) -> DynamicImage -> DynamicImage

    JuicyPixels Codec.Picture.Types

    Equivalent of the pixelMap function for the dynamic images. You can perform pixel colorspace independant operations with this function. For instance, if you want to extract a square crop of any image, without caring about colorspace, you can use the following snippet.

    dynSquare :: DynamicImage -> DynamicImage
    dynSquare = dynamicPixelMap squareImage
    
    squareImage :: Pixel a => Image a -> Image a
    squareImage img = generateImage (\x y -> pixelAt img x y) edge edge
    where edge = min (imageWidth img) (imageHeight img)
    

  10. extractLumaPlane :: LumaPlaneExtractable a => Image a -> Image (PixelBaseComponent a)

    JuicyPixels Codec.Picture.Types

    Extract a luma plane out of an image. This method is in the typeclass to help performant implementation.

    jpegToGrayScale :: FilePath -> FilePath -> IO ()
    jpegToGrayScale source dest
    

Page 479 of many | Previous | Next