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.
pixbufInitModules :: (HasCallStack, MonadIO m) => Text -> m ()gi-gdkpixbuf GI.GdkPixbuf.Objects.Pixbuf Initalizes the gdk-pixbuf loader modules referenced by the loaders.cache file present inside that directory. This is to be used by applications that want to ship certain loaders in a different location from the system ones. This is needed when the OS or runtime ships a minimal number of loaders so as to reduce the potential attack surface of carefully crafted image files, especially for uncommon file types. Applications that require broader image file types coverage, such as image viewers, would be expected to ship the gdk-pixbuf modules in a separate location, bundled with the application in a separate directory from the OS or runtime- provided modules. Since: 2.40
-
gi-gdkpixbuf GI.GdkPixbuf.Objects.Pixbuf Creates a new GdkPixbuf structure and allocates a buffer for it. If the allocation of the buffer failed, this function will return NULL. The buffer has an optimal rowstride. Note that the buffer is not cleared; you will have to fill it completely yourself.
-
gi-gdkpixbuf GI.GdkPixbuf.Objects.Pixbuf Creates a new Pixbuf out of in-memory readonly image data. Currently only RGB images with 8 bits per sample are supported. This is the GBytes variant of pixbufNewFromData, useful for language bindings. Since: 2.32
-
gi-gdkpixbuf GI.GdkPixbuf.Objects.Pixbuf Creates a new Pixbuf out of in-memory image data. Currently only RGB images with 8 bits per sample are supported. Since you are providing a pre-allocated pixel buffer, you must also specify a way to free that data. This is done with a function of type GdkPixbufDestroyNotify. When a pixbuf created with is finalized, your destroy notification function will be called, and it is its responsibility to free the pixel array. See also: pixbufNewFromBytes
pixbufNewFromFile :: (HasCallStack, MonadIO m) => [Char] -> m (Maybe Pixbuf)gi-gdkpixbuf GI.GdkPixbuf.Objects.Pixbuf Creates a new pixbuf by loading an image from a file. The file format is detected automatically. If NULL is returned, then error will be set. Possible errors are:
- the file could not be opened
- there is no loader for the file's format
- there is not enough memory to allocate the image buffer
- the image buffer contains invalid data
-
gi-gdkpixbuf GI.GdkPixbuf.Objects.Pixbuf Creates a new pixbuf by loading an image from a file. The file format is detected automatically. If NULL is returned, then error will be set. Possible errors are:
- the file could not be opened
- there is no loader for the file's format
- there is not enough memory to allocate the image buffer
- the image buffer contains invalid data
pixbufNewFromFileAtSize :: (HasCallStack, MonadIO m) => [Char] -> Int32 -> Int32 -> m (Maybe Pixbuf)gi-gdkpixbuf GI.GdkPixbuf.Objects.Pixbuf Creates a new pixbuf by loading an image from a file. The file format is detected automatically. If NULL is returned, then error will be set. Possible errors are:
- the file could not be opened
- there is no loader for the file's format
- there is not enough memory to allocate the image buffer
- the image buffer contains invalid data
pixbufNewFromInline :: (HasCallStack, MonadIO m) => ByteString -> Bool -> m Pixbufgi-gdkpixbuf GI.GdkPixbuf.Objects.Pixbuf Deprecated: (Since version 2.32)Use GResource instead.
pixbufNewFromResource :: (HasCallStack, MonadIO m) => Text -> m (Maybe Pixbuf)gi-gdkpixbuf GI.GdkPixbuf.Objects.Pixbuf Creates a new pixbuf by loading an image from an resource. The file format is detected automatically. If NULL is returned, then error will be set. Since: 2.26
-
gi-gdkpixbuf GI.GdkPixbuf.Objects.Pixbuf Creates a new pixbuf by loading an image from an resource. The file format is detected automatically. If NULL is returned, then error will be set. The image will be scaled to fit in the requested size, optionally preserving the image's aspect ratio. When preserving the aspect ratio, a width of -1 will cause the image to be scaled to the exact given height, and a height of -1 will cause the image to be scaled to the exact given width. When not preserving aspect ratio, a width or height of -1 means to not scale the image at all in that dimension. The stream is not closed. Since: 2.26