ImageEn, unit iexBitmaps

TIEBitmap.CopyToTBitmap

TIEBitmap.CopyToTBitmap


Declaration


procedure CopyToTBitmap(Dest: TBitmap);


Description


Copies the image to the Dest TBitmap object. These PixelFormat conversions are applied:
ie1g -> pf1bit
ie8p -> pf8bit
ie8g -> pf8bit (create gray scale palette)
ie16g -> pf8bit (copy only high 8 bit)
ie24RGB -> pf24bit


Examples


// Copy the displayed image to a TBitmap
ImageEnView1.IEBitmap.CopyToTBitmap( MyBmp );

// Copy the displayed image to a TImage
ImageEnView1.IEBitmap.CopyToTBitmap( Image1.Picture.Bitmap );

// Load a RAW image into a TImage
myBmp := TIEBitmap.create;
myBmp.Read( 'C:\camera.dng' );
myBmp.CopyToTBitmap( Image1.Picture.Bitmap );
myBmp.Free;