![]() |
text mit undelphix anzeigen
kann mir jemand sagen wie ich text auf meinem dxdraw anzeigen lassen kann?
Mit Bildern geht das ja problemlos! |
Re: text mit undelphix anzeigen
Hello.
You can use drawing throught Surface.Canvas.TextOut like in prototype demo in undelphix 1.07a
Delphi-Quellcode:
or you can create bitmap, drawing throught its canvas your text, put into DIB or DXImageList and and rendering it directly from this...
{ Draw FrameRate }
with DXDraw.Surface.Canvas do begin try Brush.Style := bsClear; Font.Color := clWhite; Font.Size := 10; Textout(3, 3, 'FPS: '+inttostr(DXTimer.FrameRate)); if doHardware in DXDraw.NowOptions then begin Textout(3, 14, 'Device: Hardware'); Textout(3, DXDraw.Height-16-14, 'Change device mode to software press SPACE.') end else begin Textout(3, 14, 'Device: Software'); Textout(3, DXDraw.Height-16-14, 'Change device mode to hardware press SPACE.') end; if doFullScreen in DXDraw.NowOptions then TextOut(3,DXDraw.Height-16,'For windowed mode press ALT+Enter.') else TextOut(3,DXDraw.Height-16,'For fullscreen press ALT+Enter.'); finally Release; { Indispensability } end; end; DXDraw.Flip; |
Alle Zeitangaben in WEZ +1. Es ist jetzt 19:59 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