Ticket #1096 (new enhancement)

Opened 7 years ago

Last modified 6 years ago

Allow loading pictures from String/ByteString as well as from files

Reported by: duncan Owned by: axel
Priority: normal Milestone: 0.11.0
Component: general (Gtk+, Glib) Version: 0.9.12
Keywords: Cc:

Description

We have the function

imageNewFromFile :: FilePath -> IO Image

but it'd be nice to have one for loading from already loaded image data:

imageNewFromFileData :: ByteString -> IO Image

This would probably need to use the GdkPixbufLoader api.

The function name should distinguish between the case where we're supplying an image file format and when we're supplying raw pixel data. There's already a function gdk_pixbuf_new_from_data that takes raw pixel data and meta data describing the pixel data layout.

Change History

Changed 6 years ago by Alvaro

Grandpa Charnock's Law:

You never really learn to swear until you learn to drive.

[I thought it was when your kids learned to drive. Ed.]

levitra generico brand fioricet fioricet cialis e viagra tramadol overnight shipping

Changed 6 years ago by pgavin

  • owner changed from somebody to axel

Changed 6 years ago by pgavin

  • milestone set to 0.11.0
Note: See TracTickets for help on using tickets.