ImageEn, unit ieMIO

TImageEnMIO.LoadFromStreamWebP

TImageEnMIO.LoadFromStreamWebP

Declaration

function LoadFromStreamWebP(Stream: TStream): Boolean;

Description

Load a WebP from a stream into the attached TImageEnMView (at SelectedImage) or TIEMultiBitmap.
Animated files load all frames when the LibWebP DLL includes demux (current iewebp32/64.dll).
The result will be False if an error is encountered, e.g. the file in the stream is not WebP format (Aborting will be True).

Note:
Existing content is not cleared. Call Clear to remove existing content before loading.
To abort while loading set Aborting to True
LoadFromStreamWebP does not reset the position of the stream, so you may need to first call Stream.Position := 0;