TCustomRichView.BackgroundBitmap

<< Click to display table of contents >>

TCustomRichView.BackgroundBitmap

Background image shown below the document

property BackgroundBitmap: TBitmap;

Assignment to this property copies the image, so you still need to free the source image yourself.

Example 1 (assigning image)

bmp := TBitmap.Create;

bmp.LoadFromFile('c:\image.bmp');

MyRichView.BackgroundBitmap := bmp;

bmp.Free;

Example 2 (doing the same work)

MyRichView.BackgroundBitmap.LoadFromFile('c:\image.bmp');

Example 3 (clearing the image)

MyRichView.BackgroundBitmap := nil;

In TRichViewEdit, you can change this property as an editing operation, see TRichViewEdit.SetBackgroundImageEd.

See also properties:

BackgroundStyle.