Autor Beitrag
Ironwulf
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 733
Erhaltene Danke: 2



BeitragVerfasst: Mi 30.05.07 01:55 
hy

ich würd gern nen kreisbogen machn wie der in paint, da die arc funktion von delphi nich so funktioniert wie ichs mir vorstelle ;D

ich kürz die Punkte mal mit P1..P4 ab

P1 ist der startpunkt des Bogens, P2 der endpunkt, und P3 und P4 geben die krümmung an

gibt es sone funktion in delphi schon? oder kann mir jemand helfen das zu realisiern?


Moderiert von user profile iconChristian S.: Topic aus Delphi Language (Object-Pascal) / CLX verschoben am Mi 30.05.2007 um 11:06
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Mi 30.05.07 13:28 
Hallo,

neuere Delphiversion >> TCanvas.PolyBezier
ältere Delphiversion >> Windows.PolyBezier

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
Ironwulf Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 733
Erhaltene Danke: 2



BeitragVerfasst: Mi 30.05.07 16:51 
kennt mein delphi beides nit (D3)
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Mi 30.05.07 18:59 
Hallo,

mein Delphi 3 kennt Windows.PolyBezier(API), in Delphi 2005 steht TCanvas.PolyBezier zur Verfügung.

Der Code funktioniert bei mir in D3:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
var PunkteArr : Array [0..3] of TPoint;
begin
  PunkteArr[0] := Point(10,100);
  PunkteArr[1] := Point(100,10);
  PunkteArr[2] := Point(150,10);
  PunkteArr[3] := Point(210,100);
  PolyBezier(Canvas.Handle,PunkteArr,High(PunkteArr)+1);

Hier noch ein Link dazu:
msdn2.microsoft.com/...ibrary/ms534244.aspx
Man findet es auch in der hlp-Datei:
C:\Programme\Borland\Delphi 3\HELP\WIN32.HLP

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
Ironwulf Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 733
Erhaltene Danke: 2



BeitragVerfasst: Do 31.05.07 21:06 
ahjo gibbet doch in meinem delphi :D

habs über die hilfe mit F1 nit gfunden und dacht deshalb dasses das ne gibt aber in der win32.hlp isses doch zufinden ;D

thx