TImageEnVect.SetObjBitmapFromStream
Declaration
function SetObjBitmapFromStream(hobj: Integer; Stream: TStream; FileType: 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
FileType=ioUnknown then the format is auto-detected.
Transition Information
If you are transitioning your code to
TImageEnView Layers, instead of SetObjBitmapFromStream, use:
TIELayer.Bitmap
ImageEnView1.CurrentLayer.Bitmap.LoadFromFile( 'image.gif' );
See Also
◼SetObjBitmapFromFile