There seems to be a function for it caled getCurrentImgData but I can't work out how to use it. I have posted to the Filerobot issues and will keep you updated.
This works:
procedure TImageEditorForm.SaveImage;
var
NewImg:String;
begin
asm
const NewImgData = this.ImgEd.getCurrentImgData();
var NewImg = NewImgData.imageData.imageBase64;
// console.log(NewImg);
end;
Await(MainForm.tblImages.Edit);
MainForm.tblImages.FieldByName('Img').AsString:=Copy(NewImg,23,Length(NewImg));;
Await(MainForm.Sleep(100));
Await(MainForm.tblImages.Post);
end;
1 Like