Insert Images
Posted: Sat Apr 30, 2016 1:06 pm
I have been using this code in an old app for 10 years and it works;
var
bmp: TBitmap;
jpg: TJpegImage;
begin
bmp := TBitmap.Create;
jpg := TJpegImage.Create;
bmp.Assign(TImage(Image1.Picture));
jpg.Assign(bmp);
RVE.InsertPicture('', bmp, rvvaBaseline);
bmp.Free;
jpg.Free;
end;
using it in another app and it tell me I can't assign a Tpicture to a bitmap.
What the heck am I doing wrong here.....
var
bmp: TBitmap;
jpg: TJpegImage;
begin
bmp := TBitmap.Create;
jpg := TJpegImage.Create;
bmp.Assign(TImage(Image1.Picture));
jpg.Assign(bmp);
RVE.InsertPicture('', bmp, rvvaBaseline);
bmp.Free;
jpg.Free;
end;
using it in another app and it tell me I can't assign a Tpicture to a bitmap.
What the heck am I doing wrong here.....