Background Image
Posted: Wed Feb 24, 2010 11:21 am
Silly question, I'm sure. When I make the following call, The image drops nicely into the editor.
var
img: TImage;
begin
if not dlgOpenPicture.Execute then
Exit;
img := TImage.Create(nil);
img.Picture.LoadFromFile(dlgOpenPicture.FileName);
rvEdit.InsertPicture('', img.Picture.Graphic, rvvaBaseLine);
end;
However, if I call rvEdit.BackgroundBitmap := img.Picture.Bitmap; instead of InsertPicture, the background just stays white.
Can someone tell me how I can add a background image please?
Many thanks in advance.
Stuart
var
img: TImage;
begin
if not dlgOpenPicture.Execute then
Exit;
img := TImage.Create(nil);
img.Picture.LoadFromFile(dlgOpenPicture.FileName);
rvEdit.InsertPicture('', img.Picture.Graphic, rvvaBaseLine);
end;
However, if I call rvEdit.BackgroundBitmap := img.Picture.Bitmap; instead of InsertPicture, the background just stays white.
Can someone tell me how I can add a background image please?
Many thanks in advance.
Stuart