ImageEn, unit imageenio

TImageEnIO.LoadFromStreamPXM

TImageEnIO.LoadFromStreamPXM

Declaration

function LoadFromStreamPXM(Stream: TStream): Boolean;

Description

Load an image from a stream containing a PBM, PGM or PPM file. The result will be False if an error is encountered, e.g. the file in the stream is not a recognized format (Aborting will be True).

Note:
You can abort loading by setting Aborting to True
LoadFromStreamPXM does not reset the position of the stream, so you may need to first call Stream.Position := 0;