FMX.Media.TCameraComponent.SampleBufferToBitmap
Delphi
procedure SampleBufferToBitmap(const ABitmap: TBitmap; const ASetSize: Boolean);
C++
void __fastcall SampleBufferToBitmap(Fmx::Graphics::TBitmap* const ABitmap, const bool ASetSize);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
procedure function |
public | FMX.Media.pas FMX.Media.hpp |
FMX.Media | TCameraComponent |
Description
Displays the captured data on a bitmap.
The SampleBufferToBitmap method displays the captured video data on a bitmap.
- The
ABitmapparameter is the bitmap where the image is displayed.
- The
ASetSizeparameter specifies whether the video samples are automatically resized to match the window frame. When set toTrue, the destination TBitmap is resized to match the width and height of the sample buffer. When set toFalse, the camera frame is copied to the existing bitmap without changing dimensions.
Note: If the dimensions differ from those of the sample buffer, the copied image may be clipped or stretched.
See Also
- FMX.Media.TCameraComponent.Active
- FMX.Media.TCameraComponent.Quality
- FMX.Media.TCameraComponent.CaptureSetting
- FMX.Media.TCameraComponent.OnSampleBufferReady