読者です 読者をやめる 読者になる 読者になる

Haruyuki Mohri

毛利春幸のブログです。

Drawing a line with C++Builder 10Seattle

Drawing a line with 10Seattle FireMonkey.

void __fastcall TForm1::FormPaint(TObject *Sender, TCanvas *Canvas, const TRectF &ARect)

{
    Canvas->BeginScene();
    Canvas->Clear(0xFFF0F0F0);
    TPointF startp = TPointF(0,this->Height/2);
    TPointF stopp  = TPointF(this->Width,this->Height/2);
    Canvas->Stroke->Color = 0xFF0000FF;
    Canvas->Stroke->Kind = TBrushKind::Solid;
    Canvas->Stroke->Thickness = 4;   
    Canvas->DrawLine(startp, stopp, 1);
    Canvas->EndScene();
}
//---------------------------------------------------------------------------

I was applied the above.

In more than one finger, bend the line.
youtu.be
It was executed on iOS but, Android even possible execution.