ImageEn, unit ievect

TImageEnVect.SetObjBitmapFromStream

TImageEnVect.SetObjBitmapFromStream


Declaration

function SetObjBitmapFromStream(hobj: integer; Stream: TStream; FileFormat: TIOFileType): boolean;


Description

SetObjBitmapFromStream loads an image from Stream and assigns it to the hobj bitmap object.

It returns True if a file is successfully loaded.
This function also loads and assigns the alpha channel if present.

If you set FileFormat=ioUnknown then the format is autodetected.

See also: SetObjBitmapFromFile.


Transition Information

If you are transitioning your code to TImageEnView Layers, instead of SetObjBitmapFromStream, use: TIELayer.Bitmap

ImageEnView1.CurrentLayer.Bitmap.LoadFromFile( 'image.gif' );