![]() |
FMX polygon mit einem Fillpattern zeichnen
ich möcht nicht nur einfach gefüllte Polygone zeichnen sondern Polygone mit einem bestimmten Füllpattern gefüllt sind.
Geht dies nur über eine Bitmap die ich mit meinem Füllpattern in den Brush laden muss ?
Delphi-Quellcode:
var
i: Integer; MyPolygon: TPolygon; Brush: TBrush; begin Brush := TBrush.Create(TBrushKind.Solid, TAlphaColors.red); for i := Low(FPolygonArray) to High(FPolygonArray) do begin MyPolygon := FPolygonArray[i]; Brush.Color := randomColor; localBMP.Canvas.BeginScene; // draws the polygon on the canvas localBMP.Canvas.Fill := Brush; localBMP.Canvas.FillPolygon(MyPolygon, FOpacity); localBMP.Canvas.EndScene; // updates the bitmap end; |
AW: FMX polygon mit einem Fillpattern zeichnen
Könnte sein.
Schau Dir auch mal TPath an, statt Polygon. ![]() Es gibt ja die Folgenden FillPattern ![]() Mit Resource / TBrushResource könnte es eventuell noch eine Option geben. |
Alle Zeitangaben in WEZ +1. Es ist jetzt 01:19 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz