Camera for Android

Camera for Android

Delphi and C++ Builder camera component for Android.
  • uses Android Camera API
  • available for Delphi/C++ Builder XE7 - 10.4
  • source code included in registered version
  • royalty free distribution in applications

Download and order

Order Camera for Android $120,- USD (license for one developer)
Order Camera for Android multilicense $360,- USD (license for all developers in company)
Order Camera for Android year upgrades $60,- USD (registered users only)
Order Camera for Android year upgrades multilicense $180,- USD (registered multilicense users only)

FAQ

How can I set auto focus mode?
if foContinuousVideo in ACamera.SupportedFocusModes then
  Camera.FocusMode := foContinuousVideo;
							
How can I rotate still image retrieved from camera?
procedure TFormMain.ACameraPictureTaken(Sender: TObject; Data: TArray<System.Byte>);
var
  Stream: TBytesStream;
  Bitmap: TBitmap;
begin
  // write original image
  TFile.WriteAllBytes(TPath.Combine(TPath.GetPublicPath, 'picture_' + FormatDateTime('yyyymmdd_hhnnss', Now) + '.jpeg'), Data);

  // rotate image and write it
  Stream := TBytesStream.Create(Data);
  try
    Bitmap := TBitmap.CreateFromStream(Stream);
    try
      Bitmap.Rotate(90);
      Bitmap.SaveToFile(TPath.Combine(TPath.GetPublicPath, 'picture_' + FormatDateTime('yyyymmdd_hhnnss', Now) + '_rotated.jpeg'));
    finally
      Bitmap.Free;
    end;
  finally
    Stream.Free;
  end;
end;
							

Related links