Hi for all, thanks for read my question.....
I try save the snapshot in to Dbimage component and show error "[dcc32 Error] Unit1.pas(109): E2010 Incompatible types: 'TStream' and 'TRVImageWrapper'". I no know how solve this problem....I find in the forum but no appear info..... thanks for any information....
I try with this code
DbAdvPicture1.Picture.LoadFromStream(RVCamera1.GetCurrentImage);
Questions about RvMedia with XE7 (Save image to DbImage)
-
- Posts: 3
- Joined: Fri Jan 27, 2017 12:49 pm
-
- Site Admin
- Posts: 17566
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Code: Select all
var
ImageWrapper: TRVImageWrapper;
ImageWrapper := RVCamera1.GetSnapShot;
DbAdvPicture1.Picture.Graphic := ImageWrapper.Bitmap.GetBitmap;
ImageWrapper.Free;
Otherwise, TRVCamera does not decode image frames.
-
- Posts: 3
- Joined: Fri Jan 27, 2017 12:49 pm
-
- Posts: 3
- Joined: Fri Jan 27, 2017 12:49 pm
Solved !!!
Thanks for your code , I change the component AdvDbImage for JvDbImage and works fine !!!!!
procedure TForm1.Button2Click(Sender: TObject);
var
ImageWrapper: TRVImageWrapper;
Begin
ImageWrapper := RVCamera1.GetSnapShot;
JvDbImage1.Picture.Graphic := ImageWrapper.Bitmap.GetBitmap;
ImageWrapper.Free;
end;
very thanks
procedure TForm1.Button2Click(Sender: TObject);
var
ImageWrapper: TRVImageWrapper;
Begin
ImageWrapper := RVCamera1.GetSnapShot;
JvDbImage1.Picture.Graphic := ImageWrapper.Bitmap.GetBitmap;
ImageWrapper.Free;
end;
very thanks