Code samples for RenderToTIEBitmapEx.
Automatically generated by the Every Method demo.
// Automated test of RenderToTIEBitmapEx (Watermark) - Typical Values
// Add Lightning Left watermark at bottom-left of image at 33% opacity
bmp := TIEBitmap.Create();
bmp.FillWithShape( Lightning Left, 50, 50, clWhite, 5, clNone, True, True );
bmp.RenderToTIEBitmapEx( ImageEnView1.IEBitmap,
ImageEnView1.IEBitmap.Width - bmp.Width - 10, ImageEnView1.IEBitmap.Height - bmp.Height - 10, bmp.Width, bmp.Height,
0, 0, bmp.Width, bmp.Height,
True, 255, rfFastLinear, ielNormal,
0.33 );
bmp.Free();
ImageEnView1.Update();

// Automated test of RenderToTIEBitmapEx (Watermark) - Alpha Channel - Typical Values
// Add Lightning Left watermark at bottom-left of image at 33% opacity
bmp := TIEBitmap.Create();
bmp.FillWithShape( Lightning Left, 50, 50, clWhite, 5, clNone, True, True );
bmp.RenderToTIEBitmapEx( ImageEnView1.IEBitmap,
ImageEnView1.IEBitmap.Width - bmp.Width - 10, ImageEnView1.IEBitmap.Height - bmp.Height - 10, bmp.Width, bmp.Height,
0, 0, bmp.Width, bmp.Height,
True, 255, rfFastLinear, ielNormal,
0.33 );
bmp.Free();
ImageEnView1.Update();

// Automated test of RenderToTIEBitmapEx (Watermark) - 32-Bit RGBA - Typical Values
// Add Lightning Left watermark at bottom-left of image at 33% opacity
bmp := TIEBitmap.Create();
bmp.FillWithShape( Lightning Left, 50, 50, clWhite, 5, clNone, True, True );
bmp.RenderToTIEBitmapEx( ImageEnView1.IEBitmap,
ImageEnView1.IEBitmap.Width - bmp.Width - 10, ImageEnView1.IEBitmap.Height - bmp.Height - 10, bmp.Width, bmp.Height,
0, 0, bmp.Width, bmp.Height,
True, 255, rfFastLinear, ielNormal,
0.33 );
bmp.Free();
ImageEnView1.Update();

// Automated test of RenderToTIEBitmapEx (Watermark) - 1-bit - Typical Values
// Add Lightning Left watermark at bottom-left of image at 33% opacity
bmp := TIEBitmap.Create();
bmp.FillWithShape( Lightning Left, 50, 50, clWhite, 5, clNone, True, True );
bmp.RenderToTIEBitmapEx( ImageEnView1.IEBitmap,
ImageEnView1.IEBitmap.Width - bmp.Width - 10, ImageEnView1.IEBitmap.Height - bmp.Height - 10, bmp.Width, bmp.Height,
0, 0, bmp.Width, bmp.Height,
True, 255, rfFastLinear, ielNormal,
0.33 );
bmp.Free();
ImageEnView1.Update();

// Automated test of RenderToTIEBitmapEx (Watermark) - Random Values
// Add Dinosaur watermark at bottom-left of image at 83% opacity
bmp := TIEBitmap.Create();
bmp.FillWithShape( Dinosaur, 50, 50, clBlack, 10, clBlack, True, True );
bmp.RenderToTIEBitmapEx( ImageEnView1.IEBitmap,
ImageEnView1.IEBitmap.Width - bmp.Width - 10, ImageEnView1.IEBitmap.Height - bmp.Height - 10, bmp.Width, bmp.Height,
0, 0, bmp.Width, bmp.Height,
True, 255, rfFastLinear, ielNormal,
0.83 );
bmp.Free();
ImageEnView1.Update();

// Automated test of RenderToTIEBitmapEx (Watermark) - Alpha Channel - Random Values
// Add Dinosaur watermark at bottom-left of image at 83% opacity
bmp := TIEBitmap.Create();
bmp.FillWithShape( Dinosaur, 50, 50, clBlack, 10, clBlack, True, True );
bmp.RenderToTIEBitmapEx( ImageEnView1.IEBitmap,
ImageEnView1.IEBitmap.Width - bmp.Width - 10, ImageEnView1.IEBitmap.Height - bmp.Height - 10, bmp.Width, bmp.Height,
0, 0, bmp.Width, bmp.Height,
True, 255, rfFastLinear, ielNormal,
0.83 );
bmp.Free();
ImageEnView1.Update();

// Automated test of RenderToTIEBitmapEx (Watermark) - 32-Bit RGBA - Random Values
// Add Dinosaur watermark at bottom-left of image at 83% opacity
bmp := TIEBitmap.Create();
bmp.FillWithShape( Dinosaur, 50, 50, clBlack, 10, clBlack, True, True );
bmp.RenderToTIEBitmapEx( ImageEnView1.IEBitmap,
ImageEnView1.IEBitmap.Width - bmp.Width - 10, ImageEnView1.IEBitmap.Height - bmp.Height - 10, bmp.Width, bmp.Height,
0, 0, bmp.Width, bmp.Height,
True, 255, rfFastLinear, ielNormal,
0.83 );
bmp.Free();
ImageEnView1.Update();

// Automated test of RenderToTIEBitmapEx (Watermark) - 1-bit - Random Values
// Add Dinosaur watermark at bottom-left of image at 83% opacity
bmp := TIEBitmap.Create();
bmp.FillWithShape( Dinosaur, 50, 50, clBlack, 10, clBlack, True, True );
bmp.RenderToTIEBitmapEx( ImageEnView1.IEBitmap,
ImageEnView1.IEBitmap.Width - bmp.Width - 10, ImageEnView1.IEBitmap.Height - bmp.Height - 10, bmp.Width, bmp.Height,
0, 0, bmp.Width, bmp.Height,
True, 255, rfFastLinear, ielNormal,
0.83 );
bmp.Free();
ImageEnView1.Update();
