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

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log

Revision 2 - (download) (annotate)
Sat Oct 4 23:33:09 1997 UTC (23 years, 9 months ago) by monnier
File size: 984 byte(s)
Initial revision
(* bitmap-io-sig.sml
 * COPYRIGHT (c) 1993 by AT&T Bell Laboratories.  See COPYRIGHT file for details.
 * This module provides code to read and write depth-1 images
 * stored in X11 bitmap file format (see XReadBitmapFile(3X)).

signature BITMAP_IO =
    exception BitmapFileInvalid

    val readBitmap : TextIO.instream -> {
	    hot_spot : Geometry.point option,
	    image : EXeneBase.image
	(* read an X11 format bitmap image from the given instream. Raise
	 * BitmapFileInvalid, if the input file is badly formatted.

    exception NotBitmap

    val writeBitmap : (TextIO.outstream * string * {
	    hot_spot : Geometry.point option, image : EXeneBase.image
	  }) -> unit
	(* write a bitmap with the given name to the given output stream.
	 * Raise the exception NotBitmap, if the image is not a depth-1 bitmap,
	 * and raise the exception EXeneBase.BadImageData, if the data does
	 * not match the given width and height.

  end; (* BITMAP_IO *)

ViewVC Help
Powered by ViewVC 1.0.0