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

View of /sml/trunk/src/eXene/lib/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, 11 months ago) by monnier
File size: 1178 byte(s)
Initial revision
(* bitmap-io.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)).
 * This structure is functorized over the IO module, so that it
 * can be used both as part of an eXene application (using CIO),
 * and as a standalone SML application (using IO).

signature BITMAP_IO =
    structure IO : IO

    exception BitmapFileInvalid

    val readBitmap : IO.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 : (IO.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