Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi Rechteck um gedrehten Text zeichnen? (https://www.delphipraxis.net/9373-rechteck-um-gedrehten-text-zeichnen.html)

Tpercon 25. Sep 2003 10:14


Rechteck um gedrehten Text zeichnen?
 
Mit folgendem Code lasse ich einen Text gedreht auf nem Image ausgeben:
Delphi-Quellcode:
    Image1.Canvas.Font.Size := Sign[i].Font.Size;
    Image1.Canvas.Font.Style := Sign[i].Font.Style;
    Image1.Canvas.Font.Name := Sign[i].Font.Name;
    Image1.Canvas.Font.Color := Sign[i].Font.Color;
    SetGraphicsMode(Image1.Canvas.Handle, GM_ADVANCED);
    if Sign[i].Horizontal = false then begin
      tf:=TFont.Create;
      try
        tf.Assign(Image1.Canvas.Font);
        GetObject(tf.Handle, sizeof(lf), @lf);
        lf.lfEscapement:=gradzahl * 10;
        lf.lfOrientation:=gradzahl * 10;
        tf.Handle:=CreateFontIndirect(lf);
        Image1.Canvas.Font.Assign(tf);
      finally
        tf.Free;
      end;
    end;
    Image1.Canvas.TextOut(Sign[i].Left, Sign[i].Top, sign_s);
Wie kann man um diesen Text ein Rechteck zeichnen (nur aus vertiaklen und horizontalen Linien)?

Tpercon 2. Okt 2003 13:37

Re: Rechteck um gedrehten Text zeichnen?
 
Hat echt keiner eine Idee, wie ich da ein Rechteck drum bekomme?


Alle Zeitangaben in WEZ +1. Es ist jetzt 06:16 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz