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

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

Parent Directory Parent Directory | Revision Log Revision Log

Revision 2098 - (download) (annotate)
Thu Nov 2 15:53:59 2006 UTC (12 years, 7 months ago) by blume
File size: 984 byte(s)
moved eXene to toplevel
(* 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