Please help mу translate this code from Delphi to C++Builder.
- Code: Select all
procedure TFrmMain.TakePhotoFromCameraAction1DidFinishTaking(Image: TBitmap);
{ Assign the image retrieved from the Camera to the TImage component. }
begin
TThread.Synchronize(TThread.CurrentThread,
procedure
begin
try
Image1.Bitmap.Assign(Image);
except
end;
end);
end;