Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#19 closed enhancement (fixed)

Need an easier way to load image files

Reported by: Chris Smith Owned by:
Priority: normal Milestone:
Component: Unknown Version:
Keywords: Cc:


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)

bmp-loader.dpatch (3.0 KB) - added by Chris Smith 13 years ago.
BMP file loader

Download all attachments as: .zip

Change History (5)

Changed 13 years ago by Chris Smith

Attachment: bmp-loader.dpatch added

BMP file loader

comment:1 Changed 13 years ago by Ben Lippmeier

Instead of baking in a custom bmp loader, we should use

comment:2 Changed 13 years ago by Ben Lippmeier

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 Ben Lippmeier

Resolution: fixed
Status: newclosed

comment:4 Changed 13 years ago by Ben Lippmeier


Milestone deleted

Note: See TracTickets for help on using tickets.