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

View of /eXene/releases/release-110.63/graph-util/bitmap-io-sig.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2378 - (download) (annotate)
Thu Mar 22 21:07:49 2007 UTC (12 years, 5 months ago) by blume
File size: 984 byte(s)
Release 110.63
(* 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 =
  sig
    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 *)

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