Registriert seit: 20. Jan 2006
Ort: Lübbecke
11.475 Beiträge
Delphi 12 Athens
|
AW: FMX vs. VCL canvas.DrawPolygon
16. Aug 2020, 12:33
Und wie wär's damit?
Delphi-Quellcode:
{$IFDEF Framework_VCL}
type TPolygon = array of TPoint;
{$ENDIF}
var MyPolygon : TPolygon ;
{$IFDEF Framework_VCL}
bmp.Canvas.polygon(MyPolygon);
{$ENDIF}
{$IFDEF Framework_FMX}
bmp.Canvas.Drawpolygon(MyPolygom,50);
{$ENDIF}
|