TImageEnIO.LoadFromStreamPCX
Declaration
function LoadFromStreamPCX(Stream: TStream): Boolean;
Description
Loads an image from a stream containing a PCX file. The result will be false if an error is encountered, e.g. the file in the stream is not PCX format (
Aborting will be true).
Note:
◼If
StreamHeaders property is True, the stream must have a special header (saved using
SaveToStreamPCX)
◼LoadFromStreamPCX does not reset the position of the stream, so you may need to first call Stream.Position := 0;
// loads a PCX file with LoadFromStreamPCX
var
fs: TFileStream;
Begin
fs := TFileStream.Create('myfile.pcx', fmOpenRead);
if ImageEnView1.IO.LoadFromStreamPCX(fs) = False then
ShowMessage('Not a PCX file!');
fs.free;
End;