ImageEn, unit imageenview

TImageEnView.BackBuffer

TImageEnView.BackBuffer


Declaration

property BackBuffer: TBitmap;


Description

Provides access to the back buffer where ImageEn will draw the image (and layers) prior to the paint event.
You can draw on BackBuffer by handling the OnDrawBackBuffer event to paint onto the Backbuffer canvas.
BackBuffer is updated whenever Update is called.

Note: BackBuffer is not updated when the control is not visible. To force updated of the BackBuffer, add iedoPaintWhenOffScreen to DisplayOptions


Demo

Demo  Demos\Other\CellsAndGrid\CellsAndGrid.dpr


Example

Procedure Form1OnDrawBackBuffer(Sender: TObject);
Begin
  With ImageEnView1.BackBuffer.Canvas do
  begin
    Pen.Color := clRed;
    MoveTo( 0, 0 );
    LineTo( 100, 100 );
  End;
End;