Hosted by
|
with Ada.Streams.Stream_IO; use Ada.Streams.Stream_IO;
with Gray_Images; use Gray_Images;
package PGM is
Expect_P5 : exception;
Expect_Maxval_255 : exception;
function Read
(Stream : in Stream_Access)
return Gray_Image_Access;
function Read
(Filename : in String)
return Gray_Image_Access;
procedure Write
(Stream : in Stream_Access;
Image : access Gray_Image'Class);
procedure Write
(Filename : in String;
Image : access Gray_Image'Class);
procedure Write
(Image : access Gray_Image'Class);
end PGM;
|