-- $Date: 2004/02/23 08:30:07 $
-- $Revision: 1.7 $
-- $Author: jcrocholl $

with Ada.Streams.Stream_IO; use Ada.Streams.Stream_IO;

with Glyphs; use Glyphs;

-- High efficiency PBM vectorizer. Creates a glyph from a PBM
-- (portable bitmap). This process is lossless, all image data is
-- preserved.
package Read_PBM is

   -- Read a glyph from a PBM stream.
   function Read
     (Stream : in Stream_Access-- Read from this stream.
     return Glyph_Access;        -- The newly created glyph.

   -- Read a glyph from a PBM on current input.
   -- Useful to read from a pipe.
   function Read
     return Glyph_Access-- The newly created glyph.

   -- Read a glyph from a PBM file.
   function Read
     (Filename : in String-- Read from this file.
     return Glyph_Access;   -- The newly created glyph.

end Read_PBM;