![]() |
Rechteck um gedrehten Text zeichnen?
Mit folgendem Code lasse ich einen Text gedreht auf nem Image ausgeben:
Delphi-Quellcode:
Wie kann man um diesen Text ein Rechteck zeichnen (nur aus vertiaklen und horizontalen Linien)?
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); |
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 04:06 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 by Thomas Breitkreuz