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. getPixbufNChannels :: (MonadIO m, IsPixbuf o) => o -> m Int32

    gi-gdkpixbuf GI.GdkPixbuf.Objects.Pixbuf

    Get the value of the “n-channels” property. When overloading is enabled, this is equivalent to

    get pixbuf #nChannels
    

  2. getPixbufPixelBytes :: (MonadIO m, IsPixbuf o) => o -> m (Maybe Bytes)

    gi-gdkpixbuf GI.GdkPixbuf.Objects.Pixbuf

    Get the value of the “pixel-bytes” property. When overloading is enabled, this is equivalent to

    get pixbuf #pixelBytes
    

  3. getPixbufPixels :: (MonadIO m, IsPixbuf o) => o -> m (Ptr ())

    gi-gdkpixbuf GI.GdkPixbuf.Objects.Pixbuf

    Get the value of the “pixels” property. When overloading is enabled, this is equivalent to

    get pixbuf #pixels
    

  4. getPixbufRowstride :: (MonadIO m, IsPixbuf o) => o -> m Int32

    gi-gdkpixbuf GI.GdkPixbuf.Objects.Pixbuf

    Get the value of the “rowstride” property. When overloading is enabled, this is equivalent to

    get pixbuf #rowstride
    

  5. getPixbufWidth :: (MonadIO m, IsPixbuf o) => o -> m Int32

    gi-gdkpixbuf GI.GdkPixbuf.Objects.Pixbuf

    Get the value of the “width” property. When overloading is enabled, this is equivalent to

    get pixbuf #width
    

  6. pixbufAddAlpha :: (HasCallStack, MonadIO m, IsPixbuf a) => a -> Bool -> Word8 -> Word8 -> Word8 -> m Pixbuf

    gi-gdkpixbuf GI.GdkPixbuf.Objects.Pixbuf

    Takes an existing pixbuf and adds an alpha channel to it. If the existing pixbuf already had an alpha channel, the channel values are copied from the original; otherwise, the alpha channel is initialized to 255 (full opacity). If substitute_color is TRUE, then the color specified by the (r, g, b) arguments will be assigned zero opacity. That is, if you pass (255, 255, 255) for the substitute color, all white pixels will become fully transparent. If substitute_color is FALSE, then the (r, g, b) arguments will be ignored.

  7. pixbufApplyEmbeddedOrientation :: (HasCallStack, MonadIO m, IsPixbuf a) => a -> m (Maybe Pixbuf)

    gi-gdkpixbuf GI.GdkPixbuf.Objects.Pixbuf

    Takes an existing pixbuf and checks for the presence of an associated "orientation" option. The orientation option may be provided by the JPEG loader (which reads the exif orientation tag) or the TIFF loader (which reads the TIFF orientation tag, and compensates it for the partial transforms performed by libtiff). If an orientation option/tag is present, the appropriate transform will be performed so that the pixbuf is oriented correctly. Since: 2.12

  8. pixbufCalculateRowstride :: (HasCallStack, MonadIO m) => Colorspace -> Bool -> Int32 -> Int32 -> Int32 -> m Int32

    gi-gdkpixbuf GI.GdkPixbuf.Objects.Pixbuf

    Calculates the rowstride that an image created with those values would have. This function is useful for front-ends and backends that want to check image values without needing to create a GdkPixbuf. Since: 2.36.8

  9. pixbufComposite :: (HasCallStack, MonadIO m, IsPixbuf a, IsPixbuf b) => a -> b -> Int32 -> Int32 -> Int32 -> Int32 -> Double -> Double -> Double -> Double -> InterpType -> Int32 -> m ()

    gi-gdkpixbuf GI.GdkPixbuf.Objects.Pixbuf

    Creates a transformation of the source image src by scaling by scaleX and scaleY then translating by offsetX and offsetY. This gives an image in the coordinates of the destination pixbuf. The rectangle (destX, destY, destWidth, destHeight) is then alpha blended onto the corresponding rectangle of the original destination image. When the destination rectangle contains parts not in the source image, the data at the edges of the source image is replicated to infinity.

  10. pixbufCompositeColor :: (HasCallStack, MonadIO m, IsPixbuf a, IsPixbuf b) => a -> b -> Int32 -> Int32 -> Int32 -> Int32 -> Double -> Double -> Double -> Double -> InterpType -> Int32 -> Int32 -> Int32 -> Int32 -> Word32 -> Word32 -> m ()

    gi-gdkpixbuf GI.GdkPixbuf.Objects.Pixbuf

    Creates a transformation of the source image src by scaling by scaleX and scaleY then translating by offsetX and offsetY, then alpha blends the rectangle (destX ,destY, destWidth, destHeight) of the resulting image with a checkboard of the colors color1 and color2 and renders it onto the destination image. If the source image has no alpha channel, and overallAlpha is 255, a fast path is used which omits the alpha blending and just performs the scaling. See pixbufCompositeColorSimple for a simpler variant of this function suitable for many tasks.

Page 207 of many | Previous | Next