Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Multimedia (https://www.delphipraxis.net/16-multimedia/)
-   -   Delphi text mit undelphix anzeigen (https://www.delphipraxis.net/72298-text-mit-undelphix-anzeigen.html)

smc 28. Jun 2006 10:39


text mit undelphix anzeigen
 
kann mir jemand sagen wie ich text auf meinem dxdraw anzeigen lassen kann?
Mit Bildern geht das ja problemlos!

ijcro 28. Jun 2006 20:46

Re: text mit undelphix anzeigen
 
Hello.

You can use drawing throught Surface.Canvas.TextOut like in prototype demo in undelphix 1.07a

Delphi-Quellcode:
  { 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;
or you can create bitmap, drawing throught its canvas your text, put into DIB or DXImageList and and rendering it directly from this...


Alle Zeitangaben in WEZ +1. Es ist jetzt 04:04 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