// Display the same image as a TImage ImageEnView1.IEBitmap.Assign( Image1.Picture.Graphic ); ImageEnView1.Update();
// Copy from a TGraphic class jpg := TJpegImage.Create(); try jpg.LoadFromFile( 'D:\Image.jpg' ); ImageEnView1.IEBitmap.Assign( jpg ); ImageEnView1.Update(); finally jpg.free end;
// Copy from a TImage ImageEnView1.IEBitmap.Assign( Image1 ); ImageEnView1.Update();
// Assign a 32bit Bitmap with alpha channel to an ImageEnView (keeping the alpha) var bmp: TBitmap; begin bmp := TBitmap.Create(); bmp.LoadFromFile( 'Bmp32_with_Alpha.bmp' ); ImageEnView1.IEBitmap.Assign( bmp ); ImageEnView1.IEBitmap.SynchronizeRGBA( True, True ); ImageEnView1.Update(); bmp.Free(); end;