#19 closed enhancement (fixed)
Need an easier way to load image files
Reported by: | Chris Smith | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Unknown | Version: | 1.1.1.0 |
Keywords: | Cc: |
Description
Currently, the Bitmap constructor for Picture requires a ByteString? containing raw RGBA data for the bitmap, with no header information at all. It's difficult to find an image editor that students can use and that saves images in this format.
I've attached a loader for 32-bit uncompressed RGBA-mode BMP files. This is probably the easiest "real world" image format to load, that students can edit using commonly available paint programs like Gimp, Windows Paint, or Photoshop.
Attachments (1)
Change History (5)
Changed 13 years ago by
Attachment: | bmp-loader.dpatch added |
---|
comment:1 Changed 13 years ago by
Instead of baking in a custom bmp loader, we should use http://hackage.haskell.org/package/bmp
comment:2 Changed 13 years ago by
I've just applied the patch, though if we ever have to maintain the code we should use the bmp library for loading.
comment:3 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
BMP file loader