Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Annotation of /sml/trunk/src/eXene/lib/graph-util/bitmap-io-sig.sml
ViewVC logotype

Annotation of /sml/trunk/src/eXene/lib/graph-util/bitmap-io-sig.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (view) (download)

1 : monnier 2 (* bitmap-io.sml
2 :     *
3 :     * COPYRIGHT (c) 1993 by AT&T Bell Laboratories. See COPYRIGHT file for details.
4 :     *
5 :     * This module provides code to read and write depth-1 images
6 :     * stored in X11 bitmap file format (see XReadBitmapFile(3X)).
7 :     *
8 :     * This structure is functorized over the IO module, so that it
9 :     * can be used both as part of an eXene application (using CIO),
10 :     * and as a standalone SML application (using IO).
11 :     *)
12 :    
13 :     signature BITMAP_IO =
14 :     sig
15 :     structure IO : IO
16 :    
17 :     exception BitmapFileInvalid
18 :    
19 :     val readBitmap : IO.instream -> {
20 :     hot_spot : Geometry.point option,
21 :     image : EXeneBase.image
22 :     }
23 :     (* read an X11 format bitmap image from the given instream. Raise
24 :     * BitmapFileInvalid, if the input file is badly formatted.
25 :     *)
26 :    
27 :     exception NotBitmap
28 :    
29 :     val writeBitmap : (IO.outstream * string * {
30 :     hot_spot : Geometry.point option, image : EXeneBase.image
31 :     }) -> unit
32 :     (* write a bitmap with the given name to the given output stream.
33 :     * Raise the exception NotBitmap, if the image is not a depth-1 bitmap,
34 :     * and raise the exception EXeneBase.BadImageData, if the data does
35 :     * not match the given width and height.
36 :     *)
37 :    
38 :     end; (* BITMAP_IO *)

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0