FMX.Media.TCameraComponent.SampleBufferToBitmap

From RAD Studio API Documentation

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 ABitmap parameter is the bitmap where the image is displayed.
  • The ASetSize parameter specifies whether the video samples are automatically resized to match the window frame. When set to True, the destination TBitmap is resized to match the width and height of the sample buffer. When set to False, 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

Code Samples