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/graph-util/bitmap-io-sig.sml
ViewVC logotype

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (view) (download)

1 : monnier 2 (* bitmap-io-sig.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 :    
9 :     signature BITMAP_IO =
10 :     sig
11 :     exception BitmapFileInvalid
12 :    
13 :     val readBitmap : TextIO.instream -> {
14 :     hot_spot : Geometry.point option,
15 :     image : EXeneBase.image
16 :     }
17 :     (* read an X11 format bitmap image from the given instream. Raise
18 :     * BitmapFileInvalid, if the input file is badly formatted.
19 :     *)
20 :    
21 :     exception NotBitmap
22 :    
23 :     val writeBitmap : (TextIO.outstream * string * {
24 :     hot_spot : Geometry.point option, image : EXeneBase.image
25 :     }) -> unit
26 :     (* write a bitmap with the given name to the given output stream.
27 :     * Raise the exception NotBitmap, if the image is not a depth-1 bitmap,
28 :     * and raise the exception EXeneBase.BadImageData, if the data does
29 :     * not match the given width and height.
30 :     *)
31 :    
32 :     end; (* BITMAP_IO *)

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