şuana kadar geldiğim aşama
Kod: Tümünü seç
unit selcukfeneri;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.Media,
FMX.StdCtrls, FMX.DateTimeCtrls, FMX.Objects;
type
TForm1 = class(TForm)
Switch1: TSwitch;
CameraComponent1: TCameraComponent;
Text1: TText;
ImageControl1: TImageControl;
Text2: TText;
Timer1: TTimer;
procedure Switch1Switch(Sender: TObject);
procedure Timer1Timer(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.fmx}
procedure TForm1.Switch1Switch(Sender: TObject);
begin
if Switch1.IsChecked then begin
if CameraComponent1.HasFlash then
CameraComponent1.TorchMode := TTorchMode.tmModeOn;
end else begin
if CameraComponent1.HasFlash then
CameraComponent1.TorchMode := TTorchMode.tmModeOff;
end;
end;
procedure TForm1.Timer1Timer(Sender: TObject);
begin
end;
end;
end.